Documentation ¶
Index ¶
- func RegisterUserHandler(s server.Server, hdlr UserHandler, opts ...server.HandlerOption) error
- type AuthRequest
- func (*AuthRequest) Descriptor() ([]byte, []int)
- func (m *AuthRequest) GetToken() string
- func (*AuthRequest) ProtoMessage()
- func (m *AuthRequest) Reset()
- func (m *AuthRequest) String() string
- func (m *AuthRequest) XXX_DiscardUnknown()
- func (m *AuthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthRequest) XXX_Merge(src proto.Message)
- func (m *AuthRequest) XXX_Size() int
- func (m *AuthRequest) XXX_Unmarshal(b []byte) error
- type AuthRespond
- func (*AuthRespond) Descriptor() ([]byte, []int)
- func (m *AuthRespond) GetCode() int32
- func (m *AuthRespond) GetUid() string
- func (*AuthRespond) ProtoMessage()
- func (m *AuthRespond) Reset()
- func (m *AuthRespond) String() string
- func (m *AuthRespond) XXX_DiscardUnknown()
- func (m *AuthRespond) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthRespond) XXX_Merge(src proto.Message)
- func (m *AuthRespond) XXX_Size() int
- func (m *AuthRespond) XXX_Unmarshal(b []byte) error
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)
- func (m *GetRequest) GetUid() string
- func (*GetRequest) ProtoMessage()
- func (m *GetRequest) Reset()
- func (m *GetRequest) String() string
- func (m *GetRequest) XXX_DiscardUnknown()
- func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetRequest) XXX_Merge(src proto.Message)
- func (m *GetRequest) XXX_Size() int
- func (m *GetRequest) XXX_Unmarshal(b []byte) error
- type GetRespond
- func (*GetRespond) Descriptor() ([]byte, []int)
- func (m *GetRespond) GetAddr() string
- func (m *GetRespond) GetAge() int32
- func (m *GetRespond) GetCode() int32
- func (m *GetRespond) GetUsername() string
- func (*GetRespond) ProtoMessage()
- func (m *GetRespond) Reset()
- func (m *GetRespond) String() string
- func (m *GetRespond) XXX_DiscardUnknown()
- func (m *GetRespond) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetRespond) XXX_Merge(src proto.Message)
- func (m *GetRespond) XXX_Size() int
- func (m *GetRespond) XXX_Unmarshal(b []byte) error
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)
- func (m *ListRequest) GetPage() int32
- func (m *ListRequest) GetPageSize() int32
- func (m *ListRequest) GetUsername() string
- func (*ListRequest) ProtoMessage()
- func (m *ListRequest) Reset()
- func (m *ListRequest) String() string
- func (m *ListRequest) XXX_DiscardUnknown()
- func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListRequest) XXX_Merge(src proto.Message)
- func (m *ListRequest) XXX_Size() int
- func (m *ListRequest) XXX_Unmarshal(b []byte) error
- type ListRespond
- func (*ListRespond) Descriptor() ([]byte, []int)
- func (m *ListRespond) GetAll() map[int32]*One
- func (m *ListRespond) GetCode() int32
- func (m *ListRespond) GetCount() int32
- func (*ListRespond) ProtoMessage()
- func (m *ListRespond) Reset()
- func (m *ListRespond) String() string
- func (m *ListRespond) XXX_DiscardUnknown()
- func (m *ListRespond) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListRespond) XXX_Merge(src proto.Message)
- func (m *ListRespond) XXX_Size() int
- func (m *ListRespond) XXX_Unmarshal(b []byte) 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 (m *LoginRequest) XXX_Merge(src proto.Message)
- func (m *LoginRequest) XXX_Size() int
- func (m *LoginRequest) XXX_Unmarshal(b []byte) error
- type LoginRespond
- func (*LoginRespond) Descriptor() ([]byte, []int)
- func (m *LoginRespond) GetCode() int32
- func (m *LoginRespond) GetToken() string
- func (*LoginRespond) ProtoMessage()
- func (m *LoginRespond) Reset()
- func (m *LoginRespond) String() string
- func (m *LoginRespond) XXX_DiscardUnknown()
- func (m *LoginRespond) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LoginRespond) XXX_Merge(src proto.Message)
- func (m *LoginRespond) XXX_Size() int
- func (m *LoginRespond) XXX_Unmarshal(b []byte) error
- type One
- func (*One) Descriptor() ([]byte, []int)
- func (m *One) GetAddr() string
- func (m *One) GetAge() int32
- func (m *One) GetUsername() string
- func (*One) ProtoMessage()
- func (m *One) Reset()
- func (m *One) String() string
- func (m *One) XXX_DiscardUnknown()
- func (m *One) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *One) XXX_Merge(src proto.Message)
- func (m *One) XXX_Size() int
- func (m *One) XXX_Unmarshal(b []byte) error
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)
- func (m *RegisterRequest) GetAddr() string
- func (m *RegisterRequest) GetAge() int32
- func (m *RegisterRequest) GetPassword() string
- func (m *RegisterRequest) GetUsername() string
- func (*RegisterRequest) ProtoMessage()
- func (m *RegisterRequest) Reset()
- func (m *RegisterRequest) String() string
- func (m *RegisterRequest) XXX_DiscardUnknown()
- func (m *RegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterRequest) XXX_Merge(src proto.Message)
- func (m *RegisterRequest) XXX_Size() int
- func (m *RegisterRequest) XXX_Unmarshal(b []byte) error
- type RegisterRespond
- func (*RegisterRespond) Descriptor() ([]byte, []int)
- func (m *RegisterRespond) GetCode() int32
- func (m *RegisterRespond) GetUid() string
- func (*RegisterRespond) ProtoMessage()
- func (m *RegisterRespond) Reset()
- func (m *RegisterRespond) String() string
- func (m *RegisterRespond) XXX_DiscardUnknown()
- func (m *RegisterRespond) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterRespond) XXX_Merge(src proto.Message)
- func (m *RegisterRespond) XXX_Size() int
- func (m *RegisterRespond) XXX_Unmarshal(b []byte) error
- type UserHandler
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterUserHandler ¶
func RegisterUserHandler(s server.Server, hdlr UserHandler, opts ...server.HandlerOption) error
Types ¶
type AuthRequest ¶
type AuthRequest struct { Token string `protobuf:"bytes,1,opt,name=Token,proto3" json:"Token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthRequest) Descriptor ¶
func (*AuthRequest) Descriptor() ([]byte, []int)
func (*AuthRequest) GetToken ¶
func (m *AuthRequest) GetToken() string
func (*AuthRequest) ProtoMessage ¶
func (*AuthRequest) ProtoMessage()
func (*AuthRequest) Reset ¶
func (m *AuthRequest) Reset()
func (*AuthRequest) String ¶
func (m *AuthRequest) String() string
func (*AuthRequest) XXX_DiscardUnknown ¶
func (m *AuthRequest) XXX_DiscardUnknown()
func (*AuthRequest) XXX_Marshal ¶
func (m *AuthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuthRequest) XXX_Merge ¶
func (m *AuthRequest) XXX_Merge(src proto.Message)
func (*AuthRequest) XXX_Size ¶
func (m *AuthRequest) XXX_Size() int
func (*AuthRequest) XXX_Unmarshal ¶
func (m *AuthRequest) XXX_Unmarshal(b []byte) error
type AuthRespond ¶
type AuthRespond struct { Code int32 `protobuf:"varint,1,opt,name=Code,proto3" json:"Code,omitempty"` Uid string `protobuf:"bytes,2,opt,name=Uid,proto3" json:"Uid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthRespond) Descriptor ¶
func (*AuthRespond) Descriptor() ([]byte, []int)
func (*AuthRespond) GetCode ¶
func (m *AuthRespond) GetCode() int32
func (*AuthRespond) GetUid ¶
func (m *AuthRespond) GetUid() string
func (*AuthRespond) ProtoMessage ¶
func (*AuthRespond) ProtoMessage()
func (*AuthRespond) Reset ¶
func (m *AuthRespond) Reset()
func (*AuthRespond) String ¶
func (m *AuthRespond) String() string
func (*AuthRespond) XXX_DiscardUnknown ¶
func (m *AuthRespond) XXX_DiscardUnknown()
func (*AuthRespond) XXX_Marshal ¶
func (m *AuthRespond) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuthRespond) XXX_Merge ¶
func (m *AuthRespond) XXX_Merge(src proto.Message)
func (*AuthRespond) XXX_Size ¶
func (m *AuthRespond) XXX_Size() int
func (*AuthRespond) XXX_Unmarshal ¶
func (m *AuthRespond) XXX_Unmarshal(b []byte) error
type GetRequest ¶
type GetRequest 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 (*GetRequest) Descriptor ¶
func (*GetRequest) Descriptor() ([]byte, []int)
func (*GetRequest) GetUid ¶
func (m *GetRequest) GetUid() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) Reset ¶
func (m *GetRequest) Reset()
func (*GetRequest) String ¶
func (m *GetRequest) String() string
func (*GetRequest) XXX_DiscardUnknown ¶
func (m *GetRequest) XXX_DiscardUnknown()
func (*GetRequest) XXX_Marshal ¶
func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetRequest) XXX_Merge ¶
func (m *GetRequest) XXX_Merge(src proto.Message)
func (*GetRequest) XXX_Size ¶
func (m *GetRequest) XXX_Size() int
func (*GetRequest) XXX_Unmarshal ¶
func (m *GetRequest) XXX_Unmarshal(b []byte) error
type GetRespond ¶
type GetRespond struct { Code int32 `protobuf:"varint,1,opt,name=Code,proto3" json:"Code,omitempty"` Username string `protobuf:"bytes,2,opt,name=Username,proto3" json:"Username,omitempty"` Age int32 `protobuf:"varint,3,opt,name=Age,proto3" json:"Age,omitempty"` Addr string `protobuf:"bytes,4,opt,name=Addr,proto3" json:"Addr,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetRespond) Descriptor ¶
func (*GetRespond) Descriptor() ([]byte, []int)
func (*GetRespond) GetAddr ¶
func (m *GetRespond) GetAddr() string
func (*GetRespond) GetAge ¶
func (m *GetRespond) GetAge() int32
func (*GetRespond) GetCode ¶
func (m *GetRespond) GetCode() int32
func (*GetRespond) GetUsername ¶
func (m *GetRespond) GetUsername() string
func (*GetRespond) ProtoMessage ¶
func (*GetRespond) ProtoMessage()
func (*GetRespond) Reset ¶
func (m *GetRespond) Reset()
func (*GetRespond) String ¶
func (m *GetRespond) String() string
func (*GetRespond) XXX_DiscardUnknown ¶
func (m *GetRespond) XXX_DiscardUnknown()
func (*GetRespond) XXX_Marshal ¶
func (m *GetRespond) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetRespond) XXX_Merge ¶
func (m *GetRespond) XXX_Merge(src proto.Message)
func (*GetRespond) XXX_Size ¶
func (m *GetRespond) XXX_Size() int
func (*GetRespond) XXX_Unmarshal ¶
func (m *GetRespond) XXX_Unmarshal(b []byte) error
type ListRequest ¶
type ListRequest struct { Page int32 `protobuf:"varint,1,opt,name=Page,proto3" json:"Page,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=PageSize,proto3" json:"PageSize,omitempty"` Username string `protobuf:"bytes,3,opt,name=Username,proto3" json:"Username,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListRequest) Descriptor ¶
func (*ListRequest) Descriptor() ([]byte, []int)
func (*ListRequest) GetPage ¶
func (m *ListRequest) GetPage() int32
func (*ListRequest) GetPageSize ¶
func (m *ListRequest) GetPageSize() int32
func (*ListRequest) GetUsername ¶
func (m *ListRequest) GetUsername() string
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) Reset ¶
func (m *ListRequest) Reset()
func (*ListRequest) String ¶
func (m *ListRequest) String() string
func (*ListRequest) XXX_DiscardUnknown ¶
func (m *ListRequest) XXX_DiscardUnknown()
func (*ListRequest) XXX_Marshal ¶
func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListRequest) XXX_Merge ¶
func (m *ListRequest) XXX_Merge(src proto.Message)
func (*ListRequest) XXX_Size ¶
func (m *ListRequest) XXX_Size() int
func (*ListRequest) XXX_Unmarshal ¶
func (m *ListRequest) XXX_Unmarshal(b []byte) error
type ListRespond ¶
type ListRespond struct { Code int32 `protobuf:"varint,1,opt,name=Code,proto3" json:"Code,omitempty"` Count int32 `protobuf:"varint,2,opt,name=Count,proto3" json:"Count,omitempty"` All map[int32]*One `` /* 148-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListRespond) Descriptor ¶
func (*ListRespond) Descriptor() ([]byte, []int)
func (*ListRespond) GetAll ¶
func (m *ListRespond) GetAll() map[int32]*One
func (*ListRespond) GetCode ¶
func (m *ListRespond) GetCode() int32
func (*ListRespond) GetCount ¶
func (m *ListRespond) GetCount() int32
func (*ListRespond) ProtoMessage ¶
func (*ListRespond) ProtoMessage()
func (*ListRespond) Reset ¶
func (m *ListRespond) Reset()
func (*ListRespond) String ¶
func (m *ListRespond) String() string
func (*ListRespond) XXX_DiscardUnknown ¶
func (m *ListRespond) XXX_DiscardUnknown()
func (*ListRespond) XXX_Marshal ¶
func (m *ListRespond) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListRespond) XXX_Merge ¶
func (m *ListRespond) XXX_Merge(src proto.Message)
func (*ListRespond) XXX_Size ¶
func (m *ListRespond) XXX_Size() int
func (*ListRespond) XXX_Unmarshal ¶
func (m *ListRespond) 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:"-"` }
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 LoginRespond ¶
type LoginRespond struct { Code int32 `protobuf:"varint,1,opt,name=Code,proto3" json:"Code,omitempty"` Token string `protobuf:"bytes,2,opt,name=Token,proto3" json:"Token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LoginRespond) Descriptor ¶
func (*LoginRespond) Descriptor() ([]byte, []int)
func (*LoginRespond) GetCode ¶
func (m *LoginRespond) GetCode() int32
func (*LoginRespond) GetToken ¶
func (m *LoginRespond) GetToken() string
func (*LoginRespond) ProtoMessage ¶
func (*LoginRespond) ProtoMessage()
func (*LoginRespond) Reset ¶
func (m *LoginRespond) Reset()
func (*LoginRespond) String ¶
func (m *LoginRespond) String() string
func (*LoginRespond) XXX_DiscardUnknown ¶
func (m *LoginRespond) XXX_DiscardUnknown()
func (*LoginRespond) XXX_Marshal ¶
func (m *LoginRespond) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LoginRespond) XXX_Merge ¶
func (m *LoginRespond) XXX_Merge(src proto.Message)
func (*LoginRespond) XXX_Size ¶
func (m *LoginRespond) XXX_Size() int
func (*LoginRespond) XXX_Unmarshal ¶
func (m *LoginRespond) XXX_Unmarshal(b []byte) error
type One ¶
type One struct { Username string `protobuf:"bytes,1,opt,name=Username,proto3" json:"Username,omitempty"` Age int32 `protobuf:"varint,2,opt,name=Age,proto3" json:"Age,omitempty"` Addr string `protobuf:"bytes,3,opt,name=Addr,proto3" json:"Addr,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*One) Descriptor ¶
func (*One) GetUsername ¶
func (*One) ProtoMessage ¶
func (*One) ProtoMessage()
func (*One) XXX_DiscardUnknown ¶
func (m *One) XXX_DiscardUnknown()
func (*One) XXX_Unmarshal ¶
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"` Age int32 `protobuf:"varint,3,opt,name=Age,proto3" json:"Age,omitempty"` Addr string `protobuf:"bytes,4,opt,name=Addr,proto3" json:"Addr,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RegisterRequest) Descriptor ¶
func (*RegisterRequest) Descriptor() ([]byte, []int)
func (*RegisterRequest) GetAddr ¶
func (m *RegisterRequest) GetAddr() string
func (*RegisterRequest) GetAge ¶
func (m *RegisterRequest) GetAge() 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 RegisterRespond ¶
type RegisterRespond struct { Code int32 `protobuf:"varint,1,opt,name=Code,proto3" json:"Code,omitempty"` Uid string `protobuf:"bytes,2,opt,name=Uid,proto3" json:"Uid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RegisterRespond) Descriptor ¶
func (*RegisterRespond) Descriptor() ([]byte, []int)
func (*RegisterRespond) GetCode ¶
func (m *RegisterRespond) GetCode() int32
func (*RegisterRespond) GetUid ¶
func (m *RegisterRespond) GetUid() string
func (*RegisterRespond) ProtoMessage ¶
func (*RegisterRespond) ProtoMessage()
func (*RegisterRespond) Reset ¶
func (m *RegisterRespond) Reset()
func (*RegisterRespond) String ¶
func (m *RegisterRespond) String() string
func (*RegisterRespond) XXX_DiscardUnknown ¶
func (m *RegisterRespond) XXX_DiscardUnknown()
func (*RegisterRespond) XXX_Marshal ¶
func (m *RegisterRespond) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegisterRespond) XXX_Merge ¶
func (m *RegisterRespond) XXX_Merge(src proto.Message)
func (*RegisterRespond) XXX_Size ¶
func (m *RegisterRespond) XXX_Size() int
func (*RegisterRespond) XXX_Unmarshal ¶
func (m *RegisterRespond) XXX_Unmarshal(b []byte) error
type UserHandler ¶
type UserHandler interface { Register(context.Context, *RegisterRequest, *RegisterRespond) error Login(context.Context, *LoginRequest, *LoginRespond) error Get(context.Context, *GetRequest, *GetRespond) error List(context.Context, *ListRequest, *ListRespond) error Auth(context.Context, *AuthRequest, *AuthRespond) error }
type UserService ¶
type UserService interface { Register(ctx context.Context, in *RegisterRequest, opts ...client.CallOption) (*RegisterRespond, error) Login(ctx context.Context, in *LoginRequest, opts ...client.CallOption) (*LoginRespond, error) Get(ctx context.Context, in *GetRequest, opts ...client.CallOption) (*GetRespond, error) List(ctx context.Context, in *ListRequest, opts ...client.CallOption) (*ListRespond, error) Auth(ctx context.Context, in *AuthRequest, opts ...client.CallOption) (*AuthRespond, error) }
func NewUserService ¶
func NewUserService(name string, c client.Client) UserService
Click to show internal directories.
Click to hide internal directories.