api

package
v0.0.0-...-fc3792f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*LeafReply) Marshal

func (m *LeafReply) Marshal() (dAtA []byte, err error)

func (*LeafReply) MarshalTo

func (m *LeafReply) MarshalTo(dAtA []byte) (int, error)

func (*LeafReply) MarshalToSizedBuffer

func (m *LeafReply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LeafReply) ProtoMessage

func (*LeafReply) ProtoMessage()

func (*LeafReply) Reset

func (m *LeafReply) Reset()

func (*LeafReply) Size

func (m *LeafReply) Size() (n int)

func (*LeafReply) String

func (m *LeafReply) String() string

func (*LeafReply) Unmarshal

func (m *LeafReply) Unmarshal(dAtA []byte) error

func (*LeafReply) XXX_DiscardUnknown

func (m *LeafReply) XXX_DiscardUnknown()

func (*LeafReply) XXX_Marshal

func (m *LeafReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LeafReply) XXX_Merge

func (m *LeafReply) XXX_Merge(src proto.Message)

func (*LeafReply) XXX_Size

func (m *LeafReply) XXX_Size() int

func (*LeafReply) XXX_Unmarshal

func (m *LeafReply) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*LeafReq) Marshal

func (m *LeafReq) Marshal() (dAtA []byte, err error)

func (*LeafReq) MarshalTo

func (m *LeafReq) MarshalTo(dAtA []byte) (int, error)

func (*LeafReq) MarshalToSizedBuffer

func (m *LeafReq) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LeafReq) ProtoMessage

func (*LeafReq) ProtoMessage()

func (*LeafReq) Reset

func (m *LeafReq) Reset()

func (*LeafReq) Size

func (m *LeafReq) Size() (n int)

func (*LeafReq) String

func (m *LeafReq) String() string

func (*LeafReq) Unmarshal

func (m *LeafReq) Unmarshal(dAtA []byte) error

func (*LeafReq) XXX_DiscardUnknown

func (m *LeafReq) XXX_DiscardUnknown()

func (*LeafReq) XXX_Marshal

func (m *LeafReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LeafReq) XXX_Merge

func (m *LeafReq) XXX_Merge(src proto.Message)

func (*LeafReq) XXX_Size

func (m *LeafReq) XXX_Size() int

func (*LeafReq) XXX_Unmarshal

func (m *LeafReq) XXX_Unmarshal(b []byte) error

type LeafServer

type LeafServer interface {
	NextID(context.Context, *LeafReq) (*LeafReply, error)
}

LeafServer is the server API for Leaf service.

type UnimplementedLeafServer

type UnimplementedLeafServer struct {
}

UnimplementedLeafServer can be embedded to have forward compatible implementations.

func (*UnimplementedLeafServer) NextID

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL