Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RegisteredServices map[string]map[string]Service
Map of namespaces to services
Functions ¶
func RegisterService ¶
func RegisterService(r Registration) error
Types ¶
type HandlerServer ¶
type RegisterFunc ¶
type RegisterFunc func(RegistrationParams) (Impl any, HandlerServer HandlerServer)
type Registration ¶
type Registration struct { Namespace string ServiceDesc *grpc.ServiceDesc RegisterFunc RegisterFunc }
type RegistrationParams ¶
type RemoteServiceConfig ¶
type RemoteServiceConfig struct {
Endpoint string `yaml:"endpoint"`
}
type Service ¶
type Service struct {
Registration
}
type ServiceConfig ¶
type ServiceConfig struct { Enabled bool `yaml:"enabled"` Remote RemoteServiceConfig `yaml:"remote"` ExtraProps map[string]interface{} `json:"-" mapstructure:",remain"` }
Click to show internal directories.
Click to hide internal directories.