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: 13 Imported by: 0

Documentation

Index

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

func (*Info) Marshal

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

func (*Info) MarshalTo

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

func (*Info) MarshalToSizedBuffer

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

func (*Info) ProtoMessage

func (*Info) ProtoMessage()

func (*Info) Reset

func (m *Info) Reset()

func (*Info) Size

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

func (*Info) String

func (m *Info) String() string

func (*Info) Unmarshal

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

func (*Info) XXX_DiscardUnknown

func (m *Info) XXX_DiscardUnknown()

func (*Info) XXX_Marshal

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

func (*Info) XXX_Merge

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

func (*Info) XXX_Size

func (m *Info) XXX_Size() int

func (*Info) XXX_Unmarshal

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

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

func (*InfoReply) Marshal

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

func (*InfoReply) MarshalTo

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

func (*InfoReply) MarshalToSizedBuffer

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

func (*InfoReply) ProtoMessage

func (*InfoReply) ProtoMessage()

func (*InfoReply) Reset

func (m *InfoReply) Reset()

func (*InfoReply) Size

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

func (*InfoReply) String

func (m *InfoReply) String() string

func (*InfoReply) Unmarshal

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

func (*InfoReply) XXX_DiscardUnknown

func (m *InfoReply) XXX_DiscardUnknown()

func (*InfoReply) XXX_Marshal

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

func (*InfoReply) XXX_Merge

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

func (*InfoReply) XXX_Size

func (m *InfoReply) XXX_Size() int

func (*InfoReply) XXX_Unmarshal

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

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

func (*MidReq) Marshal

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

func (*MidReq) MarshalTo

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

func (*MidReq) MarshalToSizedBuffer

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

func (*MidReq) ProtoMessage

func (*MidReq) ProtoMessage()

func (*MidReq) Reset

func (m *MidReq) Reset()

func (*MidReq) Size

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

func (*MidReq) String

func (m *MidReq) String() string

func (*MidReq) Unmarshal

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

func (*MidReq) XXX_DiscardUnknown

func (m *MidReq) XXX_DiscardUnknown()

func (*MidReq) XXX_Marshal

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

func (*MidReq) XXX_Merge

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

func (*MidReq) XXX_Size

func (m *MidReq) XXX_Size() int

func (*MidReq) XXX_Unmarshal

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

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

func (*Profile) Marshal

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

func (*Profile) MarshalTo

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

func (*Profile) MarshalToSizedBuffer

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

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) Reset

func (m *Profile) Reset()

func (*Profile) Size

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

func (*Profile) String

func (m *Profile) String() string

func (*Profile) Unmarshal

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

func (*Profile) XXX_DiscardUnknown

func (m *Profile) XXX_DiscardUnknown()

func (*Profile) XXX_Marshal

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

func (*Profile) XXX_Merge

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

func (*Profile) XXX_Size

func (m *Profile) XXX_Size() int

func (*Profile) XXX_Unmarshal

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

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) MarshalTo

func (m *ProfileReply) MarshalTo(dAtA []byte) (int, 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) Info

func (*UnimplementedAccountServer) Profile

Jump to

Keyboard shortcuts

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