protobuf

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAccServerServer

func RegisterAccServerServer(s *grpc.Server, srv AccServerServer)

Types

type AccServerClient

type AccServerClient interface {
	// 查询用户是否在线
	QueryUsersOnline(ctx context.Context, in *QueryUsersOnlineReq, opts ...grpc.CallOption) (*QueryUsersOnlineRsp, error)
	// 发送消息
	SendMsg(ctx context.Context, in *SendMsgReq, opts ...grpc.CallOption) (*SendMsgRsp, error)
	// 发送消息
	SendMsgAll(ctx context.Context, in *SendMsgAllReq, opts ...grpc.CallOption) (*SendMsgAllRsp, error)
	// 获取用户列表
	GetUserList(ctx context.Context, in *GetUserListReq, opts ...grpc.CallOption) (*GetUserListRsp, error)
}

AccServerClient is the client API for AccServer service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAccServerClient

func NewAccServerClient(cc *grpc.ClientConn) AccServerClient

type AccServerServer

type AccServerServer interface {
	// 查询用户是否在线
	QueryUsersOnline(context.Context, *QueryUsersOnlineReq) (*QueryUsersOnlineRsp, error)
	// 发送消息
	SendMsg(context.Context, *SendMsgReq) (*SendMsgRsp, error)
	// 发送消息
	SendMsgAll(context.Context, *SendMsgAllReq) (*SendMsgAllRsp, error)
	// 获取用户列表
	GetUserList(context.Context, *GetUserListReq) (*GetUserListRsp, error)
}

AccServerServer is the server API for AccServer service.

type GetUserListReq

type GetUserListReq struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

获取用户列表

func (*GetUserListReq) Descriptor

func (*GetUserListReq) Descriptor() ([]byte, []int)

func (*GetUserListReq) ProtoMessage

func (*GetUserListReq) ProtoMessage()

func (*GetUserListReq) Reset

func (m *GetUserListReq) Reset()

func (*GetUserListReq) String

func (m *GetUserListReq) String() string

func (*GetUserListReq) XXX_DiscardUnknown

func (m *GetUserListReq) XXX_DiscardUnknown()

func (*GetUserListReq) XXX_Marshal

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

func (*GetUserListReq) XXX_Merge

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

func (*GetUserListReq) XXX_Size

func (m *GetUserListReq) XXX_Size() int

func (*GetUserListReq) XXX_Unmarshal

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

type GetUserListRsp

type GetUserListRsp struct {
	RetCode              uint32   `protobuf:"varint,1,opt,name=retCode,proto3" json:"retCode,omitempty"`
	ErrMsg               string   `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	UserId               []string `protobuf:"bytes,3,rep,name=userId,proto3" json:"userId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetUserListRsp) Descriptor

func (*GetUserListRsp) Descriptor() ([]byte, []int)

func (*GetUserListRsp) GetErrMsg

func (m *GetUserListRsp) GetErrMsg() string

func (*GetUserListRsp) GetRetCode

func (m *GetUserListRsp) GetRetCode() uint32

func (*GetUserListRsp) GetUserId

func (m *GetUserListRsp) GetUserId() []string

func (*GetUserListRsp) ProtoMessage

func (*GetUserListRsp) ProtoMessage()

func (*GetUserListRsp) Reset

func (m *GetUserListRsp) Reset()

func (*GetUserListRsp) String

func (m *GetUserListRsp) String() string

func (*GetUserListRsp) XXX_DiscardUnknown

func (m *GetUserListRsp) XXX_DiscardUnknown()

func (*GetUserListRsp) XXX_Marshal

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

func (*GetUserListRsp) XXX_Merge

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

func (*GetUserListRsp) XXX_Size

func (m *GetUserListRsp) XXX_Size() int

func (*GetUserListRsp) XXX_Unmarshal

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

type QueryUsersOnlineReq

type QueryUsersOnlineReq struct {
	AppId                uint32   `protobuf:"varint,1,opt,name=appId,proto3" json:"appId,omitempty"`
	UserId               string   `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

查询用户是否在线

func (*QueryUsersOnlineReq) Descriptor

func (*QueryUsersOnlineReq) Descriptor() ([]byte, []int)

func (*QueryUsersOnlineReq) GetAppId

func (m *QueryUsersOnlineReq) GetAppId() uint32

func (*QueryUsersOnlineReq) GetUserId

func (m *QueryUsersOnlineReq) GetUserId() string

func (*QueryUsersOnlineReq) ProtoMessage

func (*QueryUsersOnlineReq) ProtoMessage()

func (*QueryUsersOnlineReq) Reset

func (m *QueryUsersOnlineReq) Reset()

func (*QueryUsersOnlineReq) String

func (m *QueryUsersOnlineReq) String() string

func (*QueryUsersOnlineReq) XXX_DiscardUnknown

func (m *QueryUsersOnlineReq) XXX_DiscardUnknown()

func (*QueryUsersOnlineReq) XXX_Marshal

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

func (*QueryUsersOnlineReq) XXX_Merge

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

func (*QueryUsersOnlineReq) XXX_Size

func (m *QueryUsersOnlineReq) XXX_Size() int

func (*QueryUsersOnlineReq) XXX_Unmarshal

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

type QueryUsersOnlineRsp

type QueryUsersOnlineRsp struct {
	RetCode              uint32   `protobuf:"varint,1,opt,name=retCode,proto3" json:"retCode,omitempty"`
	ErrMsg               string   `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	Online               bool     `protobuf:"varint,3,opt,name=online,proto3" json:"online,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*QueryUsersOnlineRsp) Descriptor

func (*QueryUsersOnlineRsp) Descriptor() ([]byte, []int)

func (*QueryUsersOnlineRsp) GetErrMsg

func (m *QueryUsersOnlineRsp) GetErrMsg() string

func (*QueryUsersOnlineRsp) GetOnline

func (m *QueryUsersOnlineRsp) GetOnline() bool

func (*QueryUsersOnlineRsp) GetRetCode

func (m *QueryUsersOnlineRsp) GetRetCode() uint32

func (*QueryUsersOnlineRsp) ProtoMessage

func (*QueryUsersOnlineRsp) ProtoMessage()

func (*QueryUsersOnlineRsp) Reset

func (m *QueryUsersOnlineRsp) Reset()

func (*QueryUsersOnlineRsp) String

func (m *QueryUsersOnlineRsp) String() string

func (*QueryUsersOnlineRsp) XXX_DiscardUnknown

func (m *QueryUsersOnlineRsp) XXX_DiscardUnknown()

func (*QueryUsersOnlineRsp) XXX_Marshal

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

func (*QueryUsersOnlineRsp) XXX_Merge

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

func (*QueryUsersOnlineRsp) XXX_Size

func (m *QueryUsersOnlineRsp) XXX_Size() int

func (*QueryUsersOnlineRsp) XXX_Unmarshal

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

type SendMsgAllReq

type SendMsgAllReq struct {
	Seq                  string   `protobuf:"bytes,1,opt,name=seq,proto3" json:"seq,omitempty"`
	AppId                uint32   `protobuf:"varint,2,opt,name=appId,proto3" json:"appId,omitempty"`
	UserId               string   `protobuf:"bytes,3,opt,name=userId,proto3" json:"userId,omitempty"`
	Cms                  string   `protobuf:"bytes,4,opt,name=cms,proto3" json:"cms,omitempty"`
	Type                 string   `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"`
	Msg                  string   `protobuf:"bytes,6,opt,name=msg,proto3" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

发送消息

func (*SendMsgAllReq) Descriptor

func (*SendMsgAllReq) Descriptor() ([]byte, []int)

func (*SendMsgAllReq) GetAppId

func (m *SendMsgAllReq) GetAppId() uint32

func (*SendMsgAllReq) GetCms

func (m *SendMsgAllReq) GetCms() string

func (*SendMsgAllReq) GetMsg

func (m *SendMsgAllReq) GetMsg() string

func (*SendMsgAllReq) GetSeq

func (m *SendMsgAllReq) GetSeq() string

func (*SendMsgAllReq) GetType

func (m *SendMsgAllReq) GetType() string

func (*SendMsgAllReq) GetUserId

func (m *SendMsgAllReq) GetUserId() string

func (*SendMsgAllReq) ProtoMessage

func (*SendMsgAllReq) ProtoMessage()

func (*SendMsgAllReq) Reset

func (m *SendMsgAllReq) Reset()

func (*SendMsgAllReq) String

func (m *SendMsgAllReq) String() string

func (*SendMsgAllReq) XXX_DiscardUnknown

func (m *SendMsgAllReq) XXX_DiscardUnknown()

func (*SendMsgAllReq) XXX_Marshal

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

func (*SendMsgAllReq) XXX_Merge

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

func (*SendMsgAllReq) XXX_Size

func (m *SendMsgAllReq) XXX_Size() int

func (*SendMsgAllReq) XXX_Unmarshal

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

type SendMsgAllRsp

type SendMsgAllRsp struct {
	RetCode              uint32   `protobuf:"varint,1,opt,name=retCode,proto3" json:"retCode,omitempty"`
	ErrMsg               string   `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	SendMsgId            string   `protobuf:"bytes,3,opt,name=sendMsgId,proto3" json:"sendMsgId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SendMsgAllRsp) Descriptor

func (*SendMsgAllRsp) Descriptor() ([]byte, []int)

func (*SendMsgAllRsp) GetErrMsg

func (m *SendMsgAllRsp) GetErrMsg() string

func (*SendMsgAllRsp) GetRetCode

func (m *SendMsgAllRsp) GetRetCode() uint32

func (*SendMsgAllRsp) GetSendMsgId

func (m *SendMsgAllRsp) GetSendMsgId() string

func (*SendMsgAllRsp) ProtoMessage

func (*SendMsgAllRsp) ProtoMessage()

func (*SendMsgAllRsp) Reset

func (m *SendMsgAllRsp) Reset()

func (*SendMsgAllRsp) String

func (m *SendMsgAllRsp) String() string

func (*SendMsgAllRsp) XXX_DiscardUnknown

func (m *SendMsgAllRsp) XXX_DiscardUnknown()

func (*SendMsgAllRsp) XXX_Marshal

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

func (*SendMsgAllRsp) XXX_Merge

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

func (*SendMsgAllRsp) XXX_Size

func (m *SendMsgAllRsp) XXX_Size() int

func (*SendMsgAllRsp) XXX_Unmarshal

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

type SendMsgReq

type SendMsgReq struct {
	Seq                  string   `protobuf:"bytes,1,opt,name=seq,proto3" json:"seq,omitempty"`
	AppId                uint32   `protobuf:"varint,2,opt,name=appId,proto3" json:"appId,omitempty"`
	UserId               string   `protobuf:"bytes,3,opt,name=userId,proto3" json:"userId,omitempty"`
	Cms                  string   `protobuf:"bytes,4,opt,name=cms,proto3" json:"cms,omitempty"`
	Type                 string   `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"`
	Msg                  string   `protobuf:"bytes,6,opt,name=msg,proto3" json:"msg,omitempty"`
	IsLocal              bool     `protobuf:"varint,7,opt,name=isLocal,proto3" json:"isLocal,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

发送消息

func (*SendMsgReq) Descriptor

func (*SendMsgReq) Descriptor() ([]byte, []int)

func (*SendMsgReq) GetAppId

func (m *SendMsgReq) GetAppId() uint32

func (*SendMsgReq) GetCms

func (m *SendMsgReq) GetCms() string

func (*SendMsgReq) GetIsLocal

func (m *SendMsgReq) GetIsLocal() bool

func (*SendMsgReq) GetMsg

func (m *SendMsgReq) GetMsg() string

func (*SendMsgReq) GetSeq

func (m *SendMsgReq) GetSeq() string

func (*SendMsgReq) GetType

func (m *SendMsgReq) GetType() string

func (*SendMsgReq) GetUserId

func (m *SendMsgReq) GetUserId() string

func (*SendMsgReq) ProtoMessage

func (*SendMsgReq) ProtoMessage()

func (*SendMsgReq) Reset

func (m *SendMsgReq) Reset()

func (*SendMsgReq) String

func (m *SendMsgReq) String() string

func (*SendMsgReq) XXX_DiscardUnknown

func (m *SendMsgReq) XXX_DiscardUnknown()

func (*SendMsgReq) XXX_Marshal

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

func (*SendMsgReq) XXX_Merge

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

func (*SendMsgReq) XXX_Size

func (m *SendMsgReq) XXX_Size() int

func (*SendMsgReq) XXX_Unmarshal

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

type SendMsgRsp

type SendMsgRsp struct {
	RetCode              uint32   `protobuf:"varint,1,opt,name=retCode,proto3" json:"retCode,omitempty"`
	ErrMsg               string   `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	SendMsgId            string   `protobuf:"bytes,3,opt,name=sendMsgId,proto3" json:"sendMsgId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SendMsgRsp) Descriptor

func (*SendMsgRsp) Descriptor() ([]byte, []int)

func (*SendMsgRsp) GetErrMsg

func (m *SendMsgRsp) GetErrMsg() string

func (*SendMsgRsp) GetRetCode

func (m *SendMsgRsp) GetRetCode() uint32

func (*SendMsgRsp) GetSendMsgId

func (m *SendMsgRsp) GetSendMsgId() string

func (*SendMsgRsp) ProtoMessage

func (*SendMsgRsp) ProtoMessage()

func (*SendMsgRsp) Reset

func (m *SendMsgRsp) Reset()

func (*SendMsgRsp) String

func (m *SendMsgRsp) String() string

func (*SendMsgRsp) XXX_DiscardUnknown

func (m *SendMsgRsp) XXX_DiscardUnknown()

func (*SendMsgRsp) XXX_Marshal

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

func (*SendMsgRsp) XXX_Merge

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

func (*SendMsgRsp) XXX_Size

func (m *SendMsgRsp) XXX_Size() int

func (*SendMsgRsp) XXX_Unmarshal

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

type UnimplementedAccServerServer

type UnimplementedAccServerServer struct {
}

UnimplementedAccServerServer can be embedded to have forward compatible implementations.

func (*UnimplementedAccServerServer) GetUserList

func (*UnimplementedAccServerServer) QueryUsersOnline

func (*UnimplementedAccServerServer) SendMsg

func (*UnimplementedAccServerServer) SendMsgAll

Jump to

Keyboard shortcuts

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