Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterLeafBMServer(e *bm.Engine, server LeafBMServer)
- func RegisterLeafServer(s *grpc.Server, srv LeafServer)
- type LeafBMServer
- type LeafClient
- type LeafReply
- func (*LeafReply) Descriptor() ([]byte, []int)
- func (m *LeafReply) Marshal() (dAtA []byte, err error)
- func (m *LeafReply) MarshalTo(dAtA []byte) (int, error)
- func (m *LeafReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LeafReply) ProtoMessage()
- func (m *LeafReply) Reset()
- func (m *LeafReply) Size() (n int)
- func (m *LeafReply) String() string
- func (m *LeafReply) Unmarshal(dAtA []byte) error
- func (m *LeafReply) XXX_DiscardUnknown()
- func (m *LeafReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeafReply) XXX_Merge(src proto.Message)
- func (m *LeafReply) XXX_Size() int
- func (m *LeafReply) XXX_Unmarshal(b []byte) error
- type LeafReq
- func (*LeafReq) Descriptor() ([]byte, []int)
- func (m *LeafReq) Marshal() (dAtA []byte, err error)
- func (m *LeafReq) MarshalTo(dAtA []byte) (int, error)
- func (m *LeafReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LeafReq) ProtoMessage()
- func (m *LeafReq) Reset()
- func (m *LeafReq) Size() (n int)
- func (m *LeafReq) String() string
- func (m *LeafReq) Unmarshal(dAtA []byte) error
- func (m *LeafReq) XXX_DiscardUnknown()
- func (m *LeafReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeafReq) XXX_Merge(src proto.Message)
- func (m *LeafReq) XXX_Size() int
- func (m *LeafReq) XXX_Unmarshal(b []byte) error
- type LeafServer
- type UnimplementedLeafServer
Constants ¶
View Source
const AppId = "leaf.service"
Variables ¶
View Source
var ( ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupApi = fmt.Errorf("proto: unexpected end of group") )
View Source
var PathLeafNextID = "/leaf/next-id"
Functions ¶
func RegisterLeafBMServer ¶
func RegisterLeafBMServer(e *bm.Engine, server LeafBMServer)
RegisterLeafBMServer Register the blademaster route
func RegisterLeafServer ¶
func RegisterLeafServer(s *grpc.Server, srv LeafServer)
Types ¶
type LeafBMServer ¶
type LeafBMServer interface {
NextID(ctx context.Context, req *LeafReq) (resp *LeafReply, err error)
}
LeafBMServer is the server API for Leaf service.
var LeafSvc LeafBMServer
type LeafClient ¶
type LeafClient interface {
NextID(ctx context.Context, in *LeafReq, opts ...grpc.CallOption) (*LeafReply, error)
}
LeafClient is the client API for Leaf service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewClient ¶
func NewClient(cfg *warden.ClientConfig, opts ...grpc.DialOption) (LeafClient, error)
func NewLeafClient ¶
func NewLeafClient(cc *grpc.ClientConn) LeafClient
type LeafReply ¶
type LeafReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LeafReply) Descriptor ¶
func (*LeafReply) MarshalToSizedBuffer ¶
func (*LeafReply) ProtoMessage ¶
func (*LeafReply) ProtoMessage()
func (*LeafReply) XXX_DiscardUnknown ¶
func (m *LeafReply) XXX_DiscardUnknown()
func (*LeafReply) XXX_Marshal ¶
func (*LeafReply) XXX_Unmarshal ¶
type LeafReq ¶
type LeafReq struct { BizTag string `protobuf:"bytes,1,opt,name=biz_tag,json=bizTag,proto3" json:"biz_tag,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LeafReq) Descriptor ¶
func (*LeafReq) MarshalToSizedBuffer ¶
func (*LeafReq) ProtoMessage ¶
func (*LeafReq) ProtoMessage()
func (*LeafReq) XXX_DiscardUnknown ¶
func (m *LeafReq) XXX_DiscardUnknown()
func (*LeafReq) XXX_Marshal ¶
func (*LeafReq) XXX_Unmarshal ¶
type LeafServer ¶
LeafServer is the server API for Leaf service.
type UnimplementedLeafServer ¶
type UnimplementedLeafServer struct { }
UnimplementedLeafServer can be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.