Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAccountBMServer(e *bm.Engine, server AccountBMServer)
- func RegisterAccountServer(s *grpc.Server, srv AccountServer)
- type AccountBMServer
- type AccountClient
- type AccountServer
- type Info
- func (*Info) Descriptor() ([]byte, []int)
- func (m *Info) Marshal() (dAtA []byte, err error)
- func (m *Info) MarshalTo(dAtA []byte) (int, error)
- func (m *Info) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Info) ProtoMessage()
- func (m *Info) Reset()
- func (m *Info) Size() (n int)
- func (m *Info) String() string
- func (m *Info) Unmarshal(dAtA []byte) error
- func (m *Info) XXX_DiscardUnknown()
- func (m *Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Info) XXX_Merge(src proto.Message)
- func (m *Info) XXX_Size() int
- func (m *Info) XXX_Unmarshal(b []byte) error
- type InfoReply
- func (*InfoReply) Descriptor() ([]byte, []int)
- func (m *InfoReply) Marshal() (dAtA []byte, err error)
- func (m *InfoReply) MarshalTo(dAtA []byte) (int, error)
- func (m *InfoReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*InfoReply) ProtoMessage()
- func (m *InfoReply) Reset()
- func (m *InfoReply) Size() (n int)
- func (m *InfoReply) String() string
- func (m *InfoReply) Unmarshal(dAtA []byte) error
- func (m *InfoReply) XXX_DiscardUnknown()
- func (m *InfoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InfoReply) XXX_Merge(src proto.Message)
- func (m *InfoReply) XXX_Size() int
- func (m *InfoReply) XXX_Unmarshal(b []byte) error
- type MidReq
- func (*MidReq) Descriptor() ([]byte, []int)
- func (m *MidReq) Marshal() (dAtA []byte, err error)
- func (m *MidReq) MarshalTo(dAtA []byte) (int, error)
- func (m *MidReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MidReq) ProtoMessage()
- func (m *MidReq) Reset()
- func (m *MidReq) Size() (n int)
- func (m *MidReq) String() string
- func (m *MidReq) Unmarshal(dAtA []byte) error
- func (m *MidReq) XXX_DiscardUnknown()
- func (m *MidReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MidReq) XXX_Merge(src proto.Message)
- func (m *MidReq) XXX_Size() int
- func (m *MidReq) XXX_Unmarshal(b []byte) error
- type Profile
- func (*Profile) Descriptor() ([]byte, []int)
- func (m *Profile) Marshal() (dAtA []byte, err error)
- func (m *Profile) MarshalTo(dAtA []byte) (int, error)
- func (m *Profile) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Profile) ProtoMessage()
- func (m *Profile) Reset()
- func (m *Profile) Size() (n int)
- func (m *Profile) String() string
- func (m *Profile) Unmarshal(dAtA []byte) error
- func (m *Profile) XXX_DiscardUnknown()
- func (m *Profile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Profile) XXX_Merge(src proto.Message)
- func (m *Profile) XXX_Size() int
- func (m *Profile) XXX_Unmarshal(b []byte) error
- type ProfileReply
- func (*ProfileReply) Descriptor() ([]byte, []int)
- func (m *ProfileReply) Marshal() (dAtA []byte, err error)
- func (m *ProfileReply) MarshalTo(dAtA []byte) (int, error)
- func (m *ProfileReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ProfileReply) ProtoMessage()
- func (m *ProfileReply) Reset()
- func (m *ProfileReply) Size() (n int)
- func (m *ProfileReply) String() string
- func (m *ProfileReply) Unmarshal(dAtA []byte) error
- func (m *ProfileReply) XXX_DiscardUnknown()
- func (m *ProfileReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProfileReply) XXX_Merge(src proto.Message)
- func (m *ProfileReply) XXX_Size() int
- func (m *ProfileReply) XXX_Unmarshal(b []byte) error
- type UnimplementedAccountServer
Constants ¶
View Source
const AppId = "account.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 PathAccountInfo = "/account.service.Account/Info"
View Source
var PathAccountProfile = "/account.service.Account/Profile"
Functions ¶
func RegisterAccountBMServer ¶
func RegisterAccountBMServer(e *bm.Engine, server AccountBMServer)
RegisterAccountBMServer Register the blademaster route
func RegisterAccountServer ¶
func RegisterAccountServer(s *grpc.Server, srv AccountServer)
Types ¶
type AccountBMServer ¶
type AccountBMServer interface { Info(ctx context.Context, req *MidReq) (resp *InfoReply, err error) Profile(ctx context.Context, req *MidReq) (resp *ProfileReply, err error) }
AccountBMServer is the server API for Account service.
var AccountSvc AccountBMServer
type AccountClient ¶
type AccountClient interface { Info(ctx context.Context, in *MidReq, opts ...grpc.CallOption) (*InfoReply, error) Profile(ctx context.Context, in *MidReq, opts ...grpc.CallOption) (*ProfileReply, error) }
AccountClient is the client API for Account service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAccountClient ¶
func NewAccountClient(cc *grpc.ClientConn) AccountClient
func NewClient ¶
func NewClient(cfg *warden.ClientConfig, opts ...grpc.DialOption) (AccountClient, error)
type AccountServer ¶
type AccountServer interface { Info(context.Context, *MidReq) (*InfoReply, error) Profile(context.Context, *MidReq) (*ProfileReply, error) }
AccountServer is the server API for Account service.
type Info ¶
type Info struct { Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` Sex string `protobuf:"bytes,3,opt,name=sex,proto3" json:"sex"` Face string `protobuf:"bytes,4,opt,name=face,proto3" json:"face"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Info) Descriptor ¶
func (*Info) ProtoMessage ¶
func (*Info) ProtoMessage()
func (*Info) XXX_DiscardUnknown ¶
func (m *Info) XXX_DiscardUnknown()
func (*Info) XXX_Unmarshal ¶
type InfoReply ¶
type InfoReply struct { Info *Info `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*InfoReply) Descriptor ¶
func (*InfoReply) MarshalToSizedBuffer ¶
func (*InfoReply) ProtoMessage ¶
func (*InfoReply) ProtoMessage()
func (*InfoReply) XXX_DiscardUnknown ¶
func (m *InfoReply) XXX_DiscardUnknown()
func (*InfoReply) XXX_Marshal ¶
func (*InfoReply) XXX_Unmarshal ¶
type MidReq ¶
type MidReq struct { Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" validate:"gt=0,required"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MidReq) Descriptor ¶
func (*MidReq) MarshalToSizedBuffer ¶
func (*MidReq) ProtoMessage ¶
func (*MidReq) ProtoMessage()
func (*MidReq) XXX_DiscardUnknown ¶
func (m *MidReq) XXX_DiscardUnknown()
func (*MidReq) XXX_Marshal ¶
func (*MidReq) XXX_Unmarshal ¶
type Profile ¶
type Profile struct { Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` Sex string `protobuf:"bytes,3,opt,name=sex,proto3" json:"sex"` Face string `protobuf:"bytes,4,opt,name=face,proto3" json:"face"` Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email"` Phone string `protobuf:"bytes,6,opt,name=phone,proto3" json:"phone"` JoinTime string `protobuf:"bytes,7,opt,name=join_time,json=joinTime,proto3" json:"join_time"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Profile) Descriptor ¶
func (*Profile) MarshalToSizedBuffer ¶
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
func (*Profile) XXX_DiscardUnknown ¶
func (m *Profile) XXX_DiscardUnknown()
func (*Profile) XXX_Marshal ¶
func (*Profile) XXX_Unmarshal ¶
type ProfileReply ¶
type ProfileReply struct { Profile *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ProfileReply) Descriptor ¶
func (*ProfileReply) Descriptor() ([]byte, []int)
func (*ProfileReply) Marshal ¶
func (m *ProfileReply) Marshal() (dAtA []byte, err error)
func (*ProfileReply) MarshalToSizedBuffer ¶
func (m *ProfileReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ProfileReply) ProtoMessage ¶
func (*ProfileReply) ProtoMessage()
func (*ProfileReply) Reset ¶
func (m *ProfileReply) Reset()
func (*ProfileReply) Size ¶
func (m *ProfileReply) Size() (n int)
func (*ProfileReply) String ¶
func (m *ProfileReply) String() string
func (*ProfileReply) Unmarshal ¶
func (m *ProfileReply) Unmarshal(dAtA []byte) error
func (*ProfileReply) XXX_DiscardUnknown ¶
func (m *ProfileReply) XXX_DiscardUnknown()
func (*ProfileReply) XXX_Marshal ¶
func (m *ProfileReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProfileReply) XXX_Merge ¶
func (m *ProfileReply) XXX_Merge(src proto.Message)
func (*ProfileReply) XXX_Size ¶
func (m *ProfileReply) XXX_Size() int
func (*ProfileReply) XXX_Unmarshal ¶
func (m *ProfileReply) XXX_Unmarshal(b []byte) error
type UnimplementedAccountServer ¶
type UnimplementedAccountServer struct { }
UnimplementedAccountServer can be embedded to have forward compatible implementations.
func (*UnimplementedAccountServer) Profile ¶
func (*UnimplementedAccountServer) Profile(ctx context.Context, req *MidReq) (*ProfileReply, error)
Click to show internal directories.
Click to hide internal directories.