Documentation ¶
Index ¶
- Variables
- func RegisterUserServer(s *grpc.Server, srv UserServer)
- type UnimplementedUserServer
- type UserClient
- type UserInfoReply
- func (*UserInfoReply) Descriptor() ([]byte, []int)
- func (m *UserInfoReply) GetCreatedAt() string
- func (m *UserInfoReply) GetId() int64
- func (m *UserInfoReply) GetName() string
- func (m *UserInfoReply) Marshal() (dAtA []byte, err error)
- func (m *UserInfoReply) MarshalTo(dAtA []byte) (int, error)
- func (m *UserInfoReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UserInfoReply) ProtoMessage()
- func (m *UserInfoReply) Reset()
- func (m *UserInfoReply) Size() (n int)
- func (m *UserInfoReply) String() string
- func (m *UserInfoReply) Unmarshal(dAtA []byte) error
- func (m *UserInfoReply) Validate() error
- func (m *UserInfoReply) XXX_DiscardUnknown()
- func (m *UserInfoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserInfoReply) XXX_Merge(src proto.Message)
- func (m *UserInfoReply) XXX_Size() int
- func (m *UserInfoReply) XXX_Unmarshal(b []byte) error
- type UserInfoReplyValidationError
- func (e UserInfoReplyValidationError) Cause() error
- func (e UserInfoReplyValidationError) Error() string
- func (e UserInfoReplyValidationError) ErrorName() string
- func (e UserInfoReplyValidationError) Field() string
- func (e UserInfoReplyValidationError) Key() bool
- func (e UserInfoReplyValidationError) Reason() string
- type UserLoginRequest
- func (*UserLoginRequest) Descriptor() ([]byte, []int)
- func (m *UserLoginRequest) GetId() int32
- func (m *UserLoginRequest) Marshal() (dAtA []byte, err error)
- func (m *UserLoginRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *UserLoginRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UserLoginRequest) ProtoMessage()
- func (m *UserLoginRequest) Reset()
- func (m *UserLoginRequest) Size() (n int)
- func (m *UserLoginRequest) String() string
- func (m *UserLoginRequest) Unmarshal(dAtA []byte) error
- func (m *UserLoginRequest) Validate() error
- func (m *UserLoginRequest) XXX_DiscardUnknown()
- func (m *UserLoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserLoginRequest) XXX_Merge(src proto.Message)
- func (m *UserLoginRequest) XXX_Size() int
- func (m *UserLoginRequest) XXX_Unmarshal(b []byte) error
- type UserLoginRequestValidationError
- func (e UserLoginRequestValidationError) Cause() error
- func (e UserLoginRequestValidationError) Error() string
- func (e UserLoginRequestValidationError) ErrorName() string
- func (e UserLoginRequestValidationError) Field() string
- func (e UserLoginRequestValidationError) Key() bool
- func (e UserLoginRequestValidationError) Reason() string
- type UserServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterUserServer ¶
func RegisterUserServer(s *grpc.Server, srv UserServer)
Types ¶
type UnimplementedUserServer ¶
type UnimplementedUserServer struct { }
UnimplementedUserServer can be embedded to have forward compatible implementations.
func (*UnimplementedUserServer) Login ¶
func (*UnimplementedUserServer) Login(ctx context.Context, req *UserLoginRequest) (*UserInfoReply, error)
type UserClient ¶
type UserClient interface {
Login(ctx context.Context, in *UserLoginRequest, opts ...grpc.CallOption) (*UserInfoReply, error)
}
UserClient is the client API for User service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUserClient ¶
func NewUserClient(cc *grpc.ClientConn) UserClient
type UserInfoReply ¶
type UserInfoReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` CreatedAt string `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserInfoReply) Descriptor ¶
func (*UserInfoReply) Descriptor() ([]byte, []int)
func (*UserInfoReply) GetCreatedAt ¶
func (m *UserInfoReply) GetCreatedAt() string
func (*UserInfoReply) GetId ¶
func (m *UserInfoReply) GetId() int64
func (*UserInfoReply) GetName ¶
func (m *UserInfoReply) GetName() string
func (*UserInfoReply) Marshal ¶
func (m *UserInfoReply) Marshal() (dAtA []byte, err error)
func (*UserInfoReply) MarshalToSizedBuffer ¶
func (m *UserInfoReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UserInfoReply) ProtoMessage ¶
func (*UserInfoReply) ProtoMessage()
func (*UserInfoReply) Reset ¶
func (m *UserInfoReply) Reset()
func (*UserInfoReply) Size ¶
func (m *UserInfoReply) Size() (n int)
func (*UserInfoReply) String ¶
func (m *UserInfoReply) String() string
func (*UserInfoReply) Unmarshal ¶
func (m *UserInfoReply) Unmarshal(dAtA []byte) error
func (*UserInfoReply) Validate ¶
func (m *UserInfoReply) Validate() error
Validate checks the field values on UserInfoReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*UserInfoReply) XXX_DiscardUnknown ¶
func (m *UserInfoReply) XXX_DiscardUnknown()
func (*UserInfoReply) XXX_Marshal ¶
func (m *UserInfoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserInfoReply) XXX_Merge ¶
func (m *UserInfoReply) XXX_Merge(src proto.Message)
func (*UserInfoReply) XXX_Size ¶
func (m *UserInfoReply) XXX_Size() int
func (*UserInfoReply) XXX_Unmarshal ¶
func (m *UserInfoReply) XXX_Unmarshal(b []byte) error
type UserInfoReplyValidationError ¶
type UserInfoReplyValidationError struct {
// contains filtered or unexported fields
}
UserInfoReplyValidationError is the validation error returned by UserInfoReply.Validate if the designated constraints aren't met.
func (UserInfoReplyValidationError) Cause ¶
func (e UserInfoReplyValidationError) Cause() error
Cause function returns cause value.
func (UserInfoReplyValidationError) Error ¶
func (e UserInfoReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UserInfoReplyValidationError) ErrorName ¶
func (e UserInfoReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UserInfoReplyValidationError) Field ¶
func (e UserInfoReplyValidationError) Field() string
Field function returns field value.
func (UserInfoReplyValidationError) Key ¶
func (e UserInfoReplyValidationError) Key() bool
Key function returns key value.
func (UserInfoReplyValidationError) Reason ¶
func (e UserInfoReplyValidationError) Reason() string
Reason function returns reason value.
type UserLoginRequest ¶
type UserLoginRequest 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 (*UserLoginRequest) Descriptor ¶
func (*UserLoginRequest) Descriptor() ([]byte, []int)
func (*UserLoginRequest) GetId ¶
func (m *UserLoginRequest) GetId() int32
func (*UserLoginRequest) Marshal ¶
func (m *UserLoginRequest) Marshal() (dAtA []byte, err error)
func (*UserLoginRequest) MarshalToSizedBuffer ¶
func (m *UserLoginRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UserLoginRequest) ProtoMessage ¶
func (*UserLoginRequest) ProtoMessage()
func (*UserLoginRequest) Reset ¶
func (m *UserLoginRequest) Reset()
func (*UserLoginRequest) Size ¶
func (m *UserLoginRequest) Size() (n int)
func (*UserLoginRequest) String ¶
func (m *UserLoginRequest) String() string
func (*UserLoginRequest) Unmarshal ¶
func (m *UserLoginRequest) Unmarshal(dAtA []byte) error
func (*UserLoginRequest) Validate ¶
func (m *UserLoginRequest) Validate() error
Validate checks the field values on UserLoginRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*UserLoginRequest) XXX_DiscardUnknown ¶
func (m *UserLoginRequest) XXX_DiscardUnknown()
func (*UserLoginRequest) XXX_Marshal ¶
func (m *UserLoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserLoginRequest) XXX_Merge ¶
func (m *UserLoginRequest) XXX_Merge(src proto.Message)
func (*UserLoginRequest) XXX_Size ¶
func (m *UserLoginRequest) XXX_Size() int
func (*UserLoginRequest) XXX_Unmarshal ¶
func (m *UserLoginRequest) XXX_Unmarshal(b []byte) error
type UserLoginRequestValidationError ¶
type UserLoginRequestValidationError struct {
// contains filtered or unexported fields
}
UserLoginRequestValidationError is the validation error returned by UserLoginRequest.Validate if the designated constraints aren't met.
func (UserLoginRequestValidationError) Cause ¶
func (e UserLoginRequestValidationError) Cause() error
Cause function returns cause value.
func (UserLoginRequestValidationError) Error ¶
func (e UserLoginRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UserLoginRequestValidationError) ErrorName ¶
func (e UserLoginRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UserLoginRequestValidationError) Field ¶
func (e UserLoginRequestValidationError) Field() string
Field function returns field value.
func (UserLoginRequestValidationError) Key ¶
func (e UserLoginRequestValidationError) Key() bool
Key function returns key value.
func (UserLoginRequestValidationError) Reason ¶
func (e UserLoginRequestValidationError) Reason() string
Reason function returns reason value.
type UserServer ¶
type UserServer interface {
Login(context.Context, *UserLoginRequest) (*UserInfoReply, error)
}
UserServer is the server API for User service.