Documentation ¶
Overview ¶
Package user is a generated protocol buffer package.
It is generated from these files:
srv/user/proto/user.proto
It has these top-level messages:
LoginRequest LoginResponse UserInfoRequest UserInfo UserInfoResponse
Index ¶
- func RegisterUserServiceHandler(s server.Server, hdlr UserServiceHandler, opts ...server.HandlerOption) error
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)
- func (m *LoginRequest) GetPassword() string
- func (m *LoginRequest) GetUsername() string
- func (*LoginRequest) ProtoMessage()
- func (m *LoginRequest) Reset()
- func (m *LoginRequest) String() string
- func (m *LoginRequest) XXX_DiscardUnknown()
- func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *LoginRequest) XXX_Merge(src proto.Message)
- func (m *LoginRequest) XXX_Size() int
- func (m *LoginRequest) XXX_Unmarshal(b []byte) error
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)
- func (m *LoginResponse) GetEmail() string
- func (m *LoginResponse) GetId() int32
- func (m *LoginResponse) GetUsername() string
- func (*LoginResponse) ProtoMessage()
- func (m *LoginResponse) Reset()
- func (m *LoginResponse) String() string
- func (m *LoginResponse) XXX_DiscardUnknown()
- func (m *LoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *LoginResponse) XXX_Merge(src proto.Message)
- func (m *LoginResponse) XXX_Size() int
- func (m *LoginResponse) XXX_Unmarshal(b []byte) error
- type UserInfo
- func (*UserInfo) Descriptor() ([]byte, []int)
- func (m *UserInfo) GetDescription() string
- func (m *UserInfo) GetEmail() string
- func (m *UserInfo) GetId() int32
- func (m *UserInfo) GetPassword() string
- func (m *UserInfo) GetUsername() string
- func (*UserInfo) ProtoMessage()
- func (m *UserInfo) Reset()
- func (m *UserInfo) String() string
- func (m *UserInfo) XXX_DiscardUnknown()
- func (m *UserInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UserInfo) XXX_Merge(src proto.Message)
- func (m *UserInfo) XXX_Size() int
- func (m *UserInfo) XXX_Unmarshal(b []byte) error
- type UserInfoRequest
- func (*UserInfoRequest) Descriptor() ([]byte, []int)
- func (m *UserInfoRequest) GetId() int32
- func (*UserInfoRequest) ProtoMessage()
- func (m *UserInfoRequest) Reset()
- func (m *UserInfoRequest) String() string
- func (m *UserInfoRequest) XXX_DiscardUnknown()
- func (m *UserInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UserInfoRequest) XXX_Merge(src proto.Message)
- func (m *UserInfoRequest) XXX_Size() int
- func (m *UserInfoRequest) XXX_Unmarshal(b []byte) error
- type UserInfoResponse
- func (*UserInfoResponse) Descriptor() ([]byte, []int)
- func (m *UserInfoResponse) GetDescription() string
- func (m *UserInfoResponse) GetEmail() string
- func (m *UserInfoResponse) GetId() int32
- func (m *UserInfoResponse) GetUsername() string
- func (*UserInfoResponse) ProtoMessage()
- func (m *UserInfoResponse) Reset()
- func (m *UserInfoResponse) String() string
- func (m *UserInfoResponse) XXX_DiscardUnknown()
- func (m *UserInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UserInfoResponse) XXX_Merge(src proto.Message)
- func (m *UserInfoResponse) XXX_Size() int
- func (m *UserInfoResponse) XXX_Unmarshal(b []byte) error
- type UserService
- type UserServiceHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterUserServiceHandler ¶
func RegisterUserServiceHandler(s server.Server, hdlr UserServiceHandler, opts ...server.HandlerOption) error
Types ¶
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:"-"` }
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 (dst *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,2,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LoginResponse) Descriptor ¶
func (*LoginResponse) Descriptor() ([]byte, []int)
func (*LoginResponse) GetEmail ¶
func (m *LoginResponse) GetEmail() string
func (*LoginResponse) GetId ¶
func (m *LoginResponse) GetId() int32
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 (dst *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 UserInfo ¶
type UserInfo struct { Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserInfo) Descriptor ¶
func (*UserInfo) GetDescription ¶
func (*UserInfo) GetPassword ¶
func (*UserInfo) GetUsername ¶
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
func (*UserInfo) XXX_DiscardUnknown ¶
func (m *UserInfo) XXX_DiscardUnknown()
func (*UserInfo) XXX_Marshal ¶
func (*UserInfo) XXX_Unmarshal ¶
type UserInfoRequest ¶
type UserInfoRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserInfoRequest) Descriptor ¶
func (*UserInfoRequest) Descriptor() ([]byte, []int)
func (*UserInfoRequest) GetId ¶
func (m *UserInfoRequest) GetId() int32
func (*UserInfoRequest) ProtoMessage ¶
func (*UserInfoRequest) ProtoMessage()
func (*UserInfoRequest) Reset ¶
func (m *UserInfoRequest) Reset()
func (*UserInfoRequest) String ¶
func (m *UserInfoRequest) String() string
func (*UserInfoRequest) XXX_DiscardUnknown ¶
func (m *UserInfoRequest) XXX_DiscardUnknown()
func (*UserInfoRequest) XXX_Marshal ¶
func (m *UserInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserInfoRequest) XXX_Merge ¶
func (dst *UserInfoRequest) XXX_Merge(src proto.Message)
func (*UserInfoRequest) XXX_Size ¶
func (m *UserInfoRequest) XXX_Size() int
func (*UserInfoRequest) XXX_Unmarshal ¶
func (m *UserInfoRequest) XXX_Unmarshal(b []byte) error
type UserInfoResponse ¶
type UserInfoResponse struct { Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserInfoResponse) Descriptor ¶
func (*UserInfoResponse) Descriptor() ([]byte, []int)
func (*UserInfoResponse) GetDescription ¶
func (m *UserInfoResponse) GetDescription() string
func (*UserInfoResponse) GetEmail ¶
func (m *UserInfoResponse) GetEmail() string
func (*UserInfoResponse) GetId ¶
func (m *UserInfoResponse) GetId() int32
func (*UserInfoResponse) GetUsername ¶
func (m *UserInfoResponse) GetUsername() string
func (*UserInfoResponse) ProtoMessage ¶
func (*UserInfoResponse) ProtoMessage()
func (*UserInfoResponse) Reset ¶
func (m *UserInfoResponse) Reset()
func (*UserInfoResponse) String ¶
func (m *UserInfoResponse) String() string
func (*UserInfoResponse) XXX_DiscardUnknown ¶
func (m *UserInfoResponse) XXX_DiscardUnknown()
func (*UserInfoResponse) XXX_Marshal ¶
func (m *UserInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserInfoResponse) XXX_Merge ¶
func (dst *UserInfoResponse) XXX_Merge(src proto.Message)
func (*UserInfoResponse) XXX_Size ¶
func (m *UserInfoResponse) XXX_Size() int
func (*UserInfoResponse) XXX_Unmarshal ¶
func (m *UserInfoResponse) XXX_Unmarshal(b []byte) error
type UserService ¶
type UserService interface { Login(ctx context.Context, in *LoginRequest, opts ...client.CallOption) (*LoginResponse, error) UserInfo(ctx context.Context, in *UserInfoRequest, opts ...client.CallOption) (*UserInfoResponse, error) }
func NewUserService ¶
func NewUserService(name string, c client.Client) UserService
type UserServiceHandler ¶
type UserServiceHandler interface { Login(context.Context, *LoginRequest, *LoginResponse) error UserInfo(context.Context, *UserInfoRequest, *UserInfoResponse) error }
Click to show internal directories.
Click to hide internal directories.