Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registrator ¶
type Registrator struct {
// contains filtered or unexported fields
}
func NewRegistrator ¶
func NewRegistrator(client *liteconsul.Client, prefix string) *Registrator
func (*Registrator) RegisterFiles ¶
func (r *Registrator) RegisterFiles(ctx context.Context, server string, files []*descriptorpb.FileDescriptorProto) error
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry(client *liteconsul.Client, prefix string, manager ServerFileManager) *Registry
type ServerFileManager ¶ added in v0.3.0
type ServerFileManager interface { UpdateServer(server string, updated []*descriptorpb.FileDescriptorProto, deleted []string) error RemoveServer(server string) error }
Click to show internal directories.
Click to hide internal directories.