pb

package
v0.0.0-...-bfcc399 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterArticlesvcServer

func RegisterArticlesvcServer(s *grpc.Server, srv ArticlesvcServer)

func RegisterUsersvcServer

func RegisterUsersvcServer(s *grpc.Server, srv UsersvcServer)

Types

type ArticlesvcClient

type ArticlesvcClient interface {
	GetCategories(ctx context.Context, in *GetCategoriesRequest, opts ...grpc.CallOption) (*GetCategoriesResponse, error)
}

ArticlesvcClient is the client API for Articlesvc service.

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

func NewArticlesvcClient

func NewArticlesvcClient(cc grpc.ClientConnInterface) ArticlesvcClient

type ArticlesvcServer

type ArticlesvcServer interface {
	GetCategories(context.Context, *GetCategoriesRequest) (*GetCategoriesResponse, error)
}

ArticlesvcServer is the server API for Articlesvc service.

type CategoryResponse

type CategoryResponse struct {
	Id                   int32    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CategoryResponse) Descriptor

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

func (*CategoryResponse) GetId

func (m *CategoryResponse) GetId() int32

func (*CategoryResponse) GetName

func (m *CategoryResponse) GetName() string

func (*CategoryResponse) ProtoMessage

func (*CategoryResponse) ProtoMessage()

func (*CategoryResponse) Reset

func (m *CategoryResponse) Reset()

func (*CategoryResponse) String

func (m *CategoryResponse) String() string

func (*CategoryResponse) XXX_DiscardUnknown

func (m *CategoryResponse) XXX_DiscardUnknown()

func (*CategoryResponse) XXX_Marshal

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

func (*CategoryResponse) XXX_Merge

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

func (*CategoryResponse) XXX_Size

func (m *CategoryResponse) XXX_Size() int

func (*CategoryResponse) XXX_Unmarshal

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

type GetCategoriesRequest

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

GetCategories

func (*GetCategoriesRequest) Descriptor

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

func (*GetCategoriesRequest) ProtoMessage

func (*GetCategoriesRequest) ProtoMessage()

func (*GetCategoriesRequest) Reset

func (m *GetCategoriesRequest) Reset()

func (*GetCategoriesRequest) String

func (m *GetCategoriesRequest) String() string

func (*GetCategoriesRequest) XXX_DiscardUnknown

func (m *GetCategoriesRequest) XXX_DiscardUnknown()

func (*GetCategoriesRequest) XXX_Marshal

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

func (*GetCategoriesRequest) XXX_Merge

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

func (*GetCategoriesRequest) XXX_Size

func (m *GetCategoriesRequest) XXX_Size() int

func (*GetCategoriesRequest) XXX_Unmarshal

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

type GetCategoriesResponse

type GetCategoriesResponse struct {
	Count                int64               `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	Data                 []*CategoryResponse `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*GetCategoriesResponse) Descriptor

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

func (*GetCategoriesResponse) GetCount

func (m *GetCategoriesResponse) GetCount() int64

func (*GetCategoriesResponse) GetData

func (m *GetCategoriesResponse) GetData() []*CategoryResponse

func (*GetCategoriesResponse) ProtoMessage

func (*GetCategoriesResponse) ProtoMessage()

func (*GetCategoriesResponse) Reset

func (m *GetCategoriesResponse) Reset()

func (*GetCategoriesResponse) String

func (m *GetCategoriesResponse) String() string

func (*GetCategoriesResponse) XXX_DiscardUnknown

func (m *GetCategoriesResponse) XXX_DiscardUnknown()

func (*GetCategoriesResponse) XXX_Marshal

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

func (*GetCategoriesResponse) XXX_Merge

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

func (*GetCategoriesResponse) XXX_Size

func (m *GetCategoriesResponse) XXX_Size() int

func (*GetCategoriesResponse) XXX_Unmarshal

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

type GetUserRequest

type GetUserRequest struct {
	Uid                  string   `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

GetUser

func (*GetUserRequest) Descriptor

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

func (*GetUserRequest) GetUid

func (m *GetUserRequest) GetUid() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) Reset

func (m *GetUserRequest) Reset()

func (*GetUserRequest) String

func (m *GetUserRequest) String() string

func (*GetUserRequest) XXX_DiscardUnknown

func (m *GetUserRequest) XXX_DiscardUnknown()

func (*GetUserRequest) XXX_Marshal

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

func (*GetUserRequest) XXX_Merge

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

func (*GetUserRequest) XXX_Size

func (m *GetUserRequest) XXX_Size() int

func (*GetUserRequest) XXX_Unmarshal

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

type GetUserResponse

type GetUserResponse struct {
	Uid                  string   `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetUserResponse) Descriptor

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

func (*GetUserResponse) GetUid

func (m *GetUserResponse) GetUid() string

func (*GetUserResponse) ProtoMessage

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) Reset

func (m *GetUserResponse) Reset()

func (*GetUserResponse) String

func (m *GetUserResponse) String() string

func (*GetUserResponse) XXX_DiscardUnknown

func (m *GetUserResponse) XXX_DiscardUnknown()

func (*GetUserResponse) XXX_Marshal

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

func (*GetUserResponse) XXX_Merge

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

func (*GetUserResponse) XXX_Size

func (m *GetUserResponse) XXX_Size() int

func (*GetUserResponse) XXX_Unmarshal

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

type LoginRequest

type LoginRequest struct {
	Username             string   `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Login

func (*LoginRequest) Descriptor

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

func (*LoginRequest) GetPassword

func (m *LoginRequest) GetPassword() string

func (*LoginRequest) GetUsername

func (m *LoginRequest) GetUsername() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) Reset

func (m *LoginRequest) Reset()

func (*LoginRequest) String

func (m *LoginRequest) String() string

func (*LoginRequest) XXX_DiscardUnknown

func (m *LoginRequest) XXX_DiscardUnknown()

func (*LoginRequest) XXX_Marshal

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

func (*LoginRequest) XXX_Merge

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

func (*LoginRequest) XXX_Size

func (m *LoginRequest) XXX_Size() int

func (*LoginRequest) XXX_Unmarshal

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

type LoginResponse

type LoginResponse struct {
	Id                   int32    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Username             string   `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Avatar               string   `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"`
	RoleID               int32    `protobuf:"varint,4,opt,name=roleID,proto3" json:"roleID,omitempty"`
	RecentTime           string   `protobuf:"bytes,5,opt,name=recentTime,proto3" json:"recentTime,omitempty"`
	CreatedTime          string   `protobuf:"bytes,6,opt,name=createdTime,proto3" json:"createdTime,omitempty"`
	UpdatedTime          string   `protobuf:"bytes,7,opt,name=updatedTime,proto3" json:"updatedTime,omitempty"`
	Cookie               string   `protobuf:"bytes,8,opt,name=cookie,proto3" json:"cookie,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LoginResponse) Descriptor

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

func (*LoginResponse) GetAvatar

func (m *LoginResponse) GetAvatar() string

func (*LoginResponse) GetCookie

func (m *LoginResponse) GetCookie() string

func (*LoginResponse) GetCreatedTime

func (m *LoginResponse) GetCreatedTime() string

func (*LoginResponse) GetId

func (m *LoginResponse) GetId() int32

func (*LoginResponse) GetRecentTime

func (m *LoginResponse) GetRecentTime() string

func (*LoginResponse) GetRoleID

func (m *LoginResponse) GetRoleID() int32

func (*LoginResponse) GetUpdatedTime

func (m *LoginResponse) GetUpdatedTime() string

func (*LoginResponse) GetUsername

func (m *LoginResponse) GetUsername() string

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) Reset

func (m *LoginResponse) Reset()

func (*LoginResponse) String

func (m *LoginResponse) String() string

func (*LoginResponse) XXX_DiscardUnknown

func (m *LoginResponse) XXX_DiscardUnknown()

func (*LoginResponse) XXX_Marshal

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

func (*LoginResponse) XXX_Merge

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

func (*LoginResponse) XXX_Size

func (m *LoginResponse) XXX_Size() int

func (*LoginResponse) XXX_Unmarshal

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

type LogoutRequest

type LogoutRequest struct {
	Sid                  string   `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Logout

func (*LogoutRequest) Descriptor

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

func (*LogoutRequest) GetSid

func (m *LogoutRequest) GetSid() string

func (*LogoutRequest) ProtoMessage

func (*LogoutRequest) ProtoMessage()

func (*LogoutRequest) Reset

func (m *LogoutRequest) Reset()

func (*LogoutRequest) String

func (m *LogoutRequest) String() string

func (*LogoutRequest) XXX_DiscardUnknown

func (m *LogoutRequest) XXX_DiscardUnknown()

func (*LogoutRequest) XXX_Marshal

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

func (*LogoutRequest) XXX_Merge

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

func (*LogoutRequest) XXX_Size

func (m *LogoutRequest) XXX_Size() int

func (*LogoutRequest) XXX_Unmarshal

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

type LogoutResponse

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

func (*LogoutResponse) Descriptor

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

func (*LogoutResponse) ProtoMessage

func (*LogoutResponse) ProtoMessage()

func (*LogoutResponse) Reset

func (m *LogoutResponse) Reset()

func (*LogoutResponse) String

func (m *LogoutResponse) String() string

func (*LogoutResponse) XXX_DiscardUnknown

func (m *LogoutResponse) XXX_DiscardUnknown()

func (*LogoutResponse) XXX_Marshal

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

func (*LogoutResponse) XXX_Merge

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

func (*LogoutResponse) XXX_Size

func (m *LogoutResponse) XXX_Size() int

func (*LogoutResponse) XXX_Unmarshal

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

type RegisterRequest

type RegisterRequest struct {
	Username             string   `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	CodeID               int32    `protobuf:"varint,3,opt,name=codeID,proto3" json:"codeID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Register

func (*RegisterRequest) Descriptor

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

func (*RegisterRequest) GetCodeID

func (m *RegisterRequest) GetCodeID() int32

func (*RegisterRequest) GetPassword

func (m *RegisterRequest) GetPassword() string

func (*RegisterRequest) GetUsername

func (m *RegisterRequest) GetUsername() string

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) Reset

func (m *RegisterRequest) Reset()

func (*RegisterRequest) String

func (m *RegisterRequest) String() string

func (*RegisterRequest) XXX_DiscardUnknown

func (m *RegisterRequest) XXX_DiscardUnknown()

func (*RegisterRequest) XXX_Marshal

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

func (*RegisterRequest) XXX_Merge

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

func (*RegisterRequest) XXX_Size

func (m *RegisterRequest) XXX_Size() int

func (*RegisterRequest) XXX_Unmarshal

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

type RegisterResponse

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

func (*RegisterResponse) Descriptor

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

func (*RegisterResponse) ProtoMessage

func (*RegisterResponse) ProtoMessage()

func (*RegisterResponse) Reset

func (m *RegisterResponse) Reset()

func (*RegisterResponse) String

func (m *RegisterResponse) String() string

func (*RegisterResponse) XXX_DiscardUnknown

func (m *RegisterResponse) XXX_DiscardUnknown()

func (*RegisterResponse) XXX_Marshal

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

func (*RegisterResponse) XXX_Merge

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

func (*RegisterResponse) XXX_Size

func (m *RegisterResponse) XXX_Size() int

func (*RegisterResponse) XXX_Unmarshal

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

type SendCodeRequest

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

SendCode

func (*SendCodeRequest) Descriptor

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

func (*SendCodeRequest) ProtoMessage

func (*SendCodeRequest) ProtoMessage()

func (*SendCodeRequest) Reset

func (m *SendCodeRequest) Reset()

func (*SendCodeRequest) String

func (m *SendCodeRequest) String() string

func (*SendCodeRequest) XXX_DiscardUnknown

func (m *SendCodeRequest) XXX_DiscardUnknown()

func (*SendCodeRequest) XXX_Marshal

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

func (*SendCodeRequest) XXX_Merge

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

func (*SendCodeRequest) XXX_Size

func (m *SendCodeRequest) XXX_Size() int

func (*SendCodeRequest) XXX_Unmarshal

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

type SendCodeResponse

type SendCodeResponse struct {
	CodeID               string   `protobuf:"bytes,1,opt,name=codeID,proto3" json:"codeID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SendCodeResponse) Descriptor

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

func (*SendCodeResponse) GetCodeID

func (m *SendCodeResponse) GetCodeID() string

func (*SendCodeResponse) ProtoMessage

func (*SendCodeResponse) ProtoMessage()

func (*SendCodeResponse) Reset

func (m *SendCodeResponse) Reset()

func (*SendCodeResponse) String

func (m *SendCodeResponse) String() string

func (*SendCodeResponse) XXX_DiscardUnknown

func (m *SendCodeResponse) XXX_DiscardUnknown()

func (*SendCodeResponse) XXX_Marshal

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

func (*SendCodeResponse) XXX_Merge

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

func (*SendCodeResponse) XXX_Size

func (m *SendCodeResponse) XXX_Size() int

func (*SendCodeResponse) XXX_Unmarshal

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

type UnimplementedArticlesvcServer

type UnimplementedArticlesvcServer struct {
}

UnimplementedArticlesvcServer can be embedded to have forward compatible implementations.

func (*UnimplementedArticlesvcServer) GetCategories

type UnimplementedUsersvcServer

type UnimplementedUsersvcServer struct {
}

UnimplementedUsersvcServer can be embedded to have forward compatible implementations.

func (*UnimplementedUsersvcServer) GetUser

func (*UnimplementedUsersvcServer) Login

func (*UnimplementedUsersvcServer) Logout

func (*UnimplementedUsersvcServer) Register

func (*UnimplementedUsersvcServer) SendCode

func (*UnimplementedUsersvcServer) UserList

type UserListRequest

type UserListRequest struct {
	Page                 int32    `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	Size                 int32    `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

UserList

func (*UserListRequest) Descriptor

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

func (*UserListRequest) GetPage

func (m *UserListRequest) GetPage() int32

func (*UserListRequest) GetSize

func (m *UserListRequest) GetSize() int32

func (*UserListRequest) ProtoMessage

func (*UserListRequest) ProtoMessage()

func (*UserListRequest) Reset

func (m *UserListRequest) Reset()

func (*UserListRequest) String

func (m *UserListRequest) String() string

func (*UserListRequest) XXX_DiscardUnknown

func (m *UserListRequest) XXX_DiscardUnknown()

func (*UserListRequest) XXX_Marshal

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

func (*UserListRequest) XXX_Merge

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

func (*UserListRequest) XXX_Size

func (m *UserListRequest) XXX_Size() int

func (*UserListRequest) XXX_Unmarshal

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

type UserListResponse

type UserListResponse struct {
	Count                int64           `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	Data                 []*UserResponse `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*UserListResponse) Descriptor

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

func (*UserListResponse) GetCount

func (m *UserListResponse) GetCount() int64

func (*UserListResponse) GetData

func (m *UserListResponse) GetData() []*UserResponse

func (*UserListResponse) ProtoMessage

func (*UserListResponse) ProtoMessage()

func (*UserListResponse) Reset

func (m *UserListResponse) Reset()

func (*UserListResponse) String

func (m *UserListResponse) String() string

func (*UserListResponse) XXX_DiscardUnknown

func (m *UserListResponse) XXX_DiscardUnknown()

func (*UserListResponse) XXX_Marshal

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

func (*UserListResponse) XXX_Merge

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

func (*UserListResponse) XXX_Size

func (m *UserListResponse) XXX_Size() int

func (*UserListResponse) XXX_Unmarshal

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

type UserResponse

type UserResponse struct {
	Id                   int32    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Username             string   `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Avatar               string   `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"`
	RoleID               int32    `protobuf:"varint,4,opt,name=roleID,proto3" json:"roleID,omitempty"`
	RecentTime           string   `protobuf:"bytes,5,opt,name=recentTime,proto3" json:"recentTime,omitempty"`
	CreatedTime          string   `protobuf:"bytes,6,opt,name=createdTime,proto3" json:"createdTime,omitempty"`
	UpdatedTime          string   `protobuf:"bytes,7,opt,name=updatedTime,proto3" json:"updatedTime,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UserResponse) Descriptor

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

func (*UserResponse) GetAvatar

func (m *UserResponse) GetAvatar() string

func (*UserResponse) GetCreatedTime

func (m *UserResponse) GetCreatedTime() string

func (*UserResponse) GetId

func (m *UserResponse) GetId() int32

func (*UserResponse) GetRecentTime

func (m *UserResponse) GetRecentTime() string

func (*UserResponse) GetRoleID

func (m *UserResponse) GetRoleID() int32

func (*UserResponse) GetUpdatedTime

func (m *UserResponse) GetUpdatedTime() string

func (*UserResponse) GetUsername

func (m *UserResponse) GetUsername() string

func (*UserResponse) ProtoMessage

func (*UserResponse) ProtoMessage()

func (*UserResponse) Reset

func (m *UserResponse) Reset()

func (*UserResponse) String

func (m *UserResponse) String() string

func (*UserResponse) XXX_DiscardUnknown

func (m *UserResponse) XXX_DiscardUnknown()

func (*UserResponse) XXX_Marshal

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

func (*UserResponse) XXX_Merge

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

func (*UserResponse) XXX_Size

func (m *UserResponse) XXX_Size() int

func (*UserResponse) XXX_Unmarshal

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

type UsersvcClient

type UsersvcClient interface {
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error)
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
	SendCode(ctx context.Context, in *SendCodeRequest, opts ...grpc.CallOption) (*SendCodeResponse, error)
	Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
	UserList(ctx context.Context, in *UserListRequest, opts ...grpc.CallOption) (*UserListResponse, error)
	Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutResponse, error)
}

UsersvcClient is the client API for Usersvc service.

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

func NewUsersvcClient

func NewUsersvcClient(cc grpc.ClientConnInterface) UsersvcClient

type UsersvcServer

UsersvcServer is the server API for Usersvc service.

Jump to

Keyboard shortcuts

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