func (a *AcceptAPI) Name() string {
	return a.name
}
Name returns the AcceptAPI name
package cluster
import (
	"context"
	"encoding/json"
	"net/http"
	"net/url"
	"github.com/go-kit/kit/log"
	"github.com/go-kit/kit/log/level"
	"github.com/pkg/errors"
	"github.com/spoke-d/thermionic/internal/clock"
	"github.com/spoke-d/thermionic/internal/cluster/membership"
	"github.com/spoke-d/thermionic/internal/fsys"
	"github.com/spoke-d/thermionic/internal/node"
	"github.com/spoke-d/thermionic/pkg/api"
)
type AcceptAPI struct {
	api.DefaultService
	name       string
	logger     log.Logger
	fileSystem fsys.FileSystem
	clock      clock.Clock
}
func NewAcceptAPI(name string, options ...Option) *AcceptAPI {
	opts := newOptions()
	for _, option := range options {
		option(opts)
	}
	return &AcceptAPI{
		name:       name,
		logger:     opts.logger,
		fileSystem: opts.fileSystem,
		clock:      opts.clock,
	}
}