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, *Request, *InfoResponse) error + Login func(context.Context, *LoginRequest, *LoginResponse) error + Logout func(context.Context, *Request, *LogoutResponse) error + type AccountService interface + Info func(ctx context.Context, in *Request, opts ...client.CallOption) (*InfoResponse, error) + Login func(ctx context.Context, in *LoginRequest, opts ...client.CallOption) (*LoginResponse, error) + Logout func(ctx context.Context, in *Request, opts ...client.CallOption) (*LogoutResponse, error) + func NewAccountService(name string, c client.Client) AccountService + type InfoResponse struct + Avatar string + Name string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*InfoResponse) Descriptor() ([]byte, []int) + func (*InfoResponse) ProtoMessage() + func (m *InfoResponse) GetAvatar() string + func (m *InfoResponse) GetName() string + func (m *InfoResponse) Reset() + func (m *InfoResponse) String() string + func (m *InfoResponse) Validate() error + func (m *InfoResponse) XXX_DiscardUnknown() + func (m *InfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *InfoResponse) XXX_Merge(src proto.Message) + func (m *InfoResponse) XXX_Size() int + func (m *InfoResponse) XXX_Unmarshal(b []byte) error + type InfoResponseValidationError struct + func (e InfoResponseValidationError) Cause() error + func (e InfoResponseValidationError) Error() string + func (e InfoResponseValidationError) ErrorName() string + func (e InfoResponseValidationError) Field() string + func (e InfoResponseValidationError) Key() bool + func (e InfoResponseValidationError) Reason() string + 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 LoginResponse struct + Token string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*LoginResponse) Descriptor() ([]byte, []int) + func (*LoginResponse) ProtoMessage() + func (m *LoginResponse) GetToken() string + func (m *LoginResponse) Reset() + func (m *LoginResponse) String() string + func (m *LoginResponse) Validate() error + func (m *LoginResponse) XXX_DiscardUnknown() + func (m *LoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *LoginResponse) XXX_Merge(src proto.Message) + func (m *LoginResponse) XXX_Size() int + func (m *LoginResponse) XXX_Unmarshal(b []byte) error + type LoginResponseValidationError struct + func (e LoginResponseValidationError) Cause() error + func (e LoginResponseValidationError) Error() string + func (e LoginResponseValidationError) ErrorName() string + func (e LoginResponseValidationError) Field() string + func (e LoginResponseValidationError) Key() bool + func (e LoginResponseValidationError) Reason() string + type LogoutResponse struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*LogoutResponse) Descriptor() ([]byte, []int) + func (*LogoutResponse) ProtoMessage() + func (m *LogoutResponse) Reset() + func (m *LogoutResponse) String() string + func (m *LogoutResponse) Validate() error + func (m *LogoutResponse) XXX_DiscardUnknown() + func (m *LogoutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *LogoutResponse) XXX_Merge(src proto.Message) + func (m *LogoutResponse) XXX_Size() int + func (m *LogoutResponse) XXX_Unmarshal(b []byte) error + type LogoutResponseValidationError struct + func (e LogoutResponseValidationError) Cause() error + func (e LogoutResponseValidationError) Error() string + func (e LogoutResponseValidationError) ErrorName() string + func (e LogoutResponseValidationError) Field() string + func (e LogoutResponseValidationError) Key() bool + func (e LogoutResponseValidationError) Reason() string + type Request struct + Id int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Request) Descriptor() ([]byte, []int) + func (*Request) ProtoMessage() + func (m *Request) GetId() int64 + func (m *Request) Reset() + func (m *Request) String() string + func (m *Request) Validate() error + func (m *Request) XXX_DiscardUnknown() + func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Request) XXX_Merge(src proto.Message) + func (m *Request) XXX_Size() int + func (m *Request) XXX_Unmarshal(b []byte) error + type RequestValidationError struct + func (e RequestValidationError) Cause() error + func (e RequestValidationError) Error() string + func (e RequestValidationError) ErrorName() string + func (e RequestValidationError) Field() string + func (e RequestValidationError) Key() bool + func (e RequestValidationError) Reason() string