Versions in this module Expand all Collapse all v1 v1.18.0 Jan 29, 2020 Changes in this version + func RegisterAccountHandler(s server.Server, hdlr AccountHandler, opts ...server.HandlerOption) error + type AccountHandler interface + Info func(context.Context, *proto1.Request, *proto1.Response) error + Login func(context.Context, *LoginRequest, *Response) error + Logout func(context.Context, *proto1.Request, *proto1.Response) error + type AccountService interface + Info func(ctx context.Context, in *proto1.Request, opts ...client.CallOption) (*proto1.Response, error) + Login func(ctx context.Context, in *LoginRequest, opts ...client.CallOption) (*Response, error) + Logout func(ctx context.Context, in *proto1.Request, opts ...client.CallOption) (*proto1.Response, error) + func NewAccountService(name string, c client.Client) AccountService + type LoginRequest struct + Password string + Username string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*LoginRequest) Descriptor() ([]byte, []int) + func (*LoginRequest) ProtoMessage() + func (m *LoginRequest) GetPassword() string + func (m *LoginRequest) GetUsername() string + func (m *LoginRequest) Reset() + func (m *LoginRequest) String() string + func (m *LoginRequest) Validate() error + 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 LoginRequestValidationError struct + func (e LoginRequestValidationError) Cause() error + func (e LoginRequestValidationError) Error() string + func (e LoginRequestValidationError) ErrorName() string + func (e LoginRequestValidationError) Field() string + func (e LoginRequestValidationError) Key() bool + func (e LoginRequestValidationError) Reason() string + type Response struct + Code int64 + Data *srv.LoginResponse + Detail string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Response) Descriptor() ([]byte, []int) + func (*Response) ProtoMessage() + func (m *Response) GetCode() int64 + func (m *Response) GetData() *srv.LoginResponse + func (m *Response) GetDetail() string + func (m *Response) Reset() + func (m *Response) String() string + func (m *Response) Validate() error + func (m *Response) XXX_DiscardUnknown() + func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Response) XXX_Merge(src proto.Message) + func (m *Response) XXX_Size() int + func (m *Response) XXX_Unmarshal(b []byte) error + type ResponseValidationError struct + func (e ResponseValidationError) Cause() error + func (e ResponseValidationError) Error() string + func (e ResponseValidationError) ErrorName() string + func (e ResponseValidationError) Field() string + func (e ResponseValidationError) Key() bool + func (e ResponseValidationError) Reason() string