Documentation ¶
Index ¶
- Constants
- func LoadBackendPlugin(ctx context.Context, name, cmdPath, dataDir, configFile string) (lobby.Backend, lobby.Plugin, error)
- func LoadPlugin(ctx context.Context, name, cmdPath, dataDir, configFile string) (lobby.Plugin, error)
- func NewServer(logger *log.Logger, services ...func(*grpc.Server, *log.Logger)) lobby.Server
- func WithRegistryService(r lobby.Registry) func(*grpc.Server, *log.Logger)
- func WithTopicService(b lobby.Backend) func(*grpc.Server, *log.Logger)
- type Backend
- type Registry
- type Topic
Constants ¶
View Source
const ( ErrInvalidJSON = lobby.Error("invalid_json") ErrInternal = lobby.Error("internal_error") ErrEmptyContent = lobby.Error("empty_content") )
HTTP errors
Variables ¶
This section is empty.
Functions ¶
func LoadBackendPlugin ¶
func LoadBackendPlugin(ctx context.Context, name, cmdPath, dataDir, configFile string) (lobby.Backend, lobby.Plugin, error)
LoadBackendPlugin loads a backend plugin.
func LoadPlugin ¶
func LoadPlugin(ctx context.Context, name, cmdPath, dataDir, configFile string) (lobby.Plugin, error)
LoadPlugin loads a plugin.
func WithRegistryService ¶
WithRegistryService enables the RegistryService.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend is a gRPC backend.
func NewBackend ¶
func NewBackend(conn *grpc.ClientConn) (*Backend, error)
NewBackend returns a gRPC backend. It is used to communicate with external backends.
type Registry ¶
Registry is a gRPC Registry.
func NewRegistry ¶
func NewRegistry(conn *grpc.ClientConn) (*Registry, error)
NewRegistry returns a gRPC Registry. It is used to communicate with external Registries.
func (*Registry) RegisterBackend ¶
RegisterBackend should never be called on this type.
Click to show internal directories.
Click to hide internal directories.