Documentation ¶
Index ¶
- Variables
- func GetKey(svc *Service) string
- func GetWatcherKey(name string) string
- func NewGrpcConn(ctx context.Context, svcName string, client *clientv3.Client) (*grpc.ClientConn, error)
- func NewGrpcServer(ctx context.Context, conf *Config, client *clientv3.Client) (*grpc.Server, error)
- type Config
- type Register
- type Service
- func (*Service) Descriptor() ([]byte, []int)
- func (m *Service) GetBind() string
- func (m *Service) GetName() string
- func (m *Service) Marshal() (dAtA []byte, err error)
- func (m *Service) MarshalTo(dAtA []byte) (int, error)
- func (m *Service) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Service) ProtoMessage()
- func (m *Service) Reset()
- func (m *Service) Size() (n int)
- func (m *Service) String() string
- func (m *Service) Unmarshal(dAtA []byte) error
- func (m *Service) XXX_DiscardUnknown()
- func (m *Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Service) XXX_Merge(src proto.Message)
- func (m *Service) XXX_Size() int
- func (m *Service) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetWatcherKey ¶
func NewGrpcConn ¶
Types ¶
type Service ¶
type Service struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Bind string `protobuf:"bytes,2,opt,name=bind,proto3" json:"bind,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Service) Descriptor ¶
func (*Service) MarshalToSizedBuffer ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) XXX_DiscardUnknown ¶
func (m *Service) XXX_DiscardUnknown()
func (*Service) XXX_Marshal ¶
func (*Service) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.