Documentation ¶
Index ¶
- func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetCreatedAt() *timestamp.Timestamp
- func (m *User) GetDeletedAt() *timestamp.Timestamp
- func (m *User) GetEmail() string
- func (m *User) GetError() *error1.Error
- func (m *User) GetID() uint32
- func (m *User) GetName() string
- func (m *User) GetToken() string
- func (m *User) GetUpdatedAt() *timestamp.Timestamp
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
- type UserAuth
- func (*UserAuth) Descriptor() ([]byte, []int)
- func (m *UserAuth) GetEmail() string
- func (m *UserAuth) GetPassword() string
- func (*UserAuth) ProtoMessage()
- func (m *UserAuth) Reset()
- func (m *UserAuth) String() string
- func (m *UserAuth) XXX_DiscardUnknown()
- func (m *UserAuth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserAuth) XXX_Merge(src proto.Message)
- func (m *UserAuth) XXX_Size() int
- func (m *UserAuth) XXX_Unmarshal(b []byte) error
- type UserServiceClient
- type UserServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
Types ¶
type User ¶
type User struct { ID uint32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Email string `protobuf:"bytes,3,opt,name=Email,proto3" json:"Email,omitempty"` Token string `protobuf:"bytes,4,opt,name=Token,proto3" json:"Token,omitempty"` Error *error1.Error `protobuf:"bytes,5,opt,name=Error,proto3" json:"Error,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"` DeletedAt *timestamp.Timestamp `protobuf:"bytes,8,opt,name=DeletedAt,proto3" json:"DeletedAt,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*User) Descriptor ¶
func (*User) GetCreatedAt ¶
func (*User) GetDeletedAt ¶
func (*User) GetUpdatedAt ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Unmarshal ¶
type UserAuth ¶
type UserAuth struct { Email string `protobuf:"bytes,1,opt,name=Email,proto3" json:"Email,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 (*UserAuth) Descriptor ¶
func (*UserAuth) GetPassword ¶
func (*UserAuth) ProtoMessage ¶
func (*UserAuth) ProtoMessage()
func (*UserAuth) XXX_DiscardUnknown ¶
func (m *UserAuth) XXX_DiscardUnknown()
func (*UserAuth) XXX_Marshal ¶
func (*UserAuth) XXX_Unmarshal ¶
type UserServiceClient ¶
type UserServiceClient interface {
Auth(ctx context.Context, in *UserAuth, opts ...grpc.CallOption) (*User, error)
}
UserServiceClient is the client API for UserService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUserServiceClient ¶
func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient
Click to show internal directories.
Click to hide internal directories.