Documentation ¶
Index ¶
- Variables
- func RegisterUsersServer(s *grpc.Server, srv UsersServer)
- type ActivateRequest
- func (*ActivateRequest) Descriptor() ([]byte, []int)
- func (m *ActivateRequest) GetEmail() string
- func (*ActivateRequest) ProtoMessage()
- func (m *ActivateRequest) Reset()
- func (m *ActivateRequest) String() string
- func (m *ActivateRequest) XXX_DiscardUnknown()
- func (m *ActivateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ActivateRequest) XXX_Merge(src proto.Message)
- func (m *ActivateRequest) XXX_Size() int
- func (m *ActivateRequest) XXX_Unmarshal(b []byte) error
- type ActivateResponse
- func (*ActivateResponse) Descriptor() ([]byte, []int)
- func (m *ActivateResponse) GetMessage() string
- func (*ActivateResponse) ProtoMessage()
- func (m *ActivateResponse) Reset()
- func (m *ActivateResponse) String() string
- func (m *ActivateResponse) XXX_DiscardUnknown()
- func (m *ActivateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ActivateResponse) XXX_Merge(src proto.Message)
- func (m *ActivateResponse) XXX_Size() int
- func (m *ActivateResponse) XXX_Unmarshal(b []byte) error
- type AddRequest
- func (*AddRequest) Descriptor() ([]byte, []int)
- func (m *AddRequest) GetExtraData() *UserExtra
- func (m *AddRequest) GetMainData() *UserMain
- func (*AddRequest) ProtoMessage()
- func (m *AddRequest) Reset()
- func (m *AddRequest) String() string
- func (m *AddRequest) XXX_DiscardUnknown()
- func (m *AddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddRequest) XXX_Merge(src proto.Message)
- func (m *AddRequest) XXX_Size() int
- func (m *AddRequest) XXX_Unmarshal(b []byte) error
- type AddResponse
- func (*AddResponse) Descriptor() ([]byte, []int)
- func (m *AddResponse) GetMessage() string
- func (m *AddResponse) GetUserID() string
- func (*AddResponse) ProtoMessage()
- func (m *AddResponse) Reset()
- func (m *AddResponse) String() string
- func (m *AddResponse) XXX_DiscardUnknown()
- func (m *AddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddResponse) XXX_Merge(src proto.Message)
- func (m *AddResponse) XXX_Size() int
- func (m *AddResponse) XXX_Unmarshal(b []byte) error
- type AuthRequest
- func (*AuthRequest) Descriptor() ([]byte, []int)
- func (m *AuthRequest) GetEmail() string
- func (m *AuthRequest) GetPassword() string
- func (m *AuthRequest) GetUsername() 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 AuthResponse
- func (*AuthResponse) Descriptor() ([]byte, []int)
- func (m *AuthResponse) GetMessage() string
- func (m *AuthResponse) GetUserID() string
- func (m *AuthResponse) GetValid() bool
- func (*AuthResponse) ProtoMessage()
- func (m *AuthResponse) Reset()
- func (m *AuthResponse) String() string
- func (m *AuthResponse) XXX_DiscardUnknown()
- func (m *AuthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthResponse) XXX_Merge(src proto.Message)
- func (m *AuthResponse) XXX_Size() int
- func (m *AuthResponse) XXX_Unmarshal(b []byte) error
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)
- func (m *GetRequest) GetEmail() string
- func (m *GetRequest) GetType() Type
- func (m *GetRequest) GetUserID() string
- func (m *GetRequest) GetUsername() 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 GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)
- func (m *GetResponse) GetExtra() *UserExtra
- func (m *GetResponse) GetMain() *UserMain
- func (*GetResponse) ProtoMessage()
- func (m *GetResponse) Reset()
- func (m *GetResponse) String() string
- func (m *GetResponse) XXX_DiscardUnknown()
- func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetResponse) XXX_Merge(src proto.Message)
- func (m *GetResponse) XXX_Size() int
- func (m *GetResponse) XXX_Unmarshal(b []byte) error
- type Type
- type UnimplementedUsersServer
- func (*UnimplementedUsersServer) Activate(ctx context.Context, req *ActivateRequest) (*ActivateResponse, error)
- func (*UnimplementedUsersServer) Add(ctx context.Context, req *AddRequest) (*AddResponse, error)
- func (*UnimplementedUsersServer) Auth(ctx context.Context, req *AuthRequest) (*AuthResponse, error)
- func (*UnimplementedUsersServer) Get(ctx context.Context, req *GetRequest) (*UserMain, error)
- func (*UnimplementedUsersServer) Update(ctx context.Context, req *UpdateRequest) (*UpdateResponse, error)
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)
- func (m *UpdateRequest) GetExtra() *UserExtra
- func (m *UpdateRequest) GetMain() *UserMain
- func (m *UpdateRequest) GetType() Type
- func (m *UpdateRequest) GetUserID() string
- func (*UpdateRequest) ProtoMessage()
- func (m *UpdateRequest) Reset()
- func (m *UpdateRequest) String() string
- func (m *UpdateRequest) XXX_DiscardUnknown()
- func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateRequest) XXX_Merge(src proto.Message)
- func (m *UpdateRequest) XXX_Size() int
- func (m *UpdateRequest) XXX_Unmarshal(b []byte) error
- type UpdateResponse
- func (*UpdateResponse) Descriptor() ([]byte, []int)
- func (m *UpdateResponse) GetMessage() string
- func (*UpdateResponse) ProtoMessage()
- func (m *UpdateResponse) Reset()
- func (m *UpdateResponse) String() string
- func (m *UpdateResponse) XXX_DiscardUnknown()
- func (m *UpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateResponse) XXX_Merge(src proto.Message)
- func (m *UpdateResponse) XXX_Size() int
- func (m *UpdateResponse) XXX_Unmarshal(b []byte) error
- type UserExtra
- func (*UserExtra) Descriptor() ([]byte, []int)
- func (m *UserExtra) GetBirthdayUTC() int64
- func (m *UserExtra) GetFirstName() string
- func (m *UserExtra) GetGender() string
- func (m *UserExtra) GetLastName() string
- func (m *UserExtra) GetMessage() string
- func (m *UserExtra) GetUserId() string
- func (*UserExtra) ProtoMessage()
- func (m *UserExtra) Reset()
- func (m *UserExtra) String() string
- func (m *UserExtra) XXX_DiscardUnknown()
- func (m *UserExtra) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserExtra) XXX_Merge(src proto.Message)
- func (m *UserExtra) XXX_Size() int
- func (m *UserExtra) XXX_Unmarshal(b []byte) error
- type UserMain
- func (*UserMain) Descriptor() ([]byte, []int)
- func (m *UserMain) GetEmail() string
- func (m *UserMain) GetMessage() string
- func (m *UserMain) GetPassword() string
- func (m *UserMain) GetUserID() string
- func (m *UserMain) GetUsername() string
- func (*UserMain) ProtoMessage()
- func (m *UserMain) Reset()
- func (m *UserMain) String() string
- func (m *UserMain) XXX_DiscardUnknown()
- func (m *UserMain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserMain) XXX_Merge(src proto.Message)
- func (m *UserMain) XXX_Size() int
- func (m *UserMain) XXX_Unmarshal(b []byte) error
- type UsersClient
- type UsersServer
Constants ¶
This section is empty.
Variables ¶
View Source
var Type_name = map[int32]string{
0: "main",
1: "extra",
2: "meta",
}
View Source
var Type_value = map[string]int32{
"main": 0,
"extra": 1,
"meta": 2,
}
Functions ¶
func RegisterUsersServer ¶
func RegisterUsersServer(s *grpc.Server, srv UsersServer)
Types ¶
type ActivateRequest ¶
type ActivateRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Activate Function
func (*ActivateRequest) Descriptor ¶
func (*ActivateRequest) Descriptor() ([]byte, []int)
func (*ActivateRequest) GetEmail ¶
func (m *ActivateRequest) GetEmail() string
func (*ActivateRequest) ProtoMessage ¶
func (*ActivateRequest) ProtoMessage()
func (*ActivateRequest) Reset ¶
func (m *ActivateRequest) Reset()
func (*ActivateRequest) String ¶
func (m *ActivateRequest) String() string
func (*ActivateRequest) XXX_DiscardUnknown ¶
func (m *ActivateRequest) XXX_DiscardUnknown()
func (*ActivateRequest) XXX_Marshal ¶
func (m *ActivateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ActivateRequest) XXX_Merge ¶
func (m *ActivateRequest) XXX_Merge(src proto.Message)
func (*ActivateRequest) XXX_Size ¶
func (m *ActivateRequest) XXX_Size() int
func (*ActivateRequest) XXX_Unmarshal ¶
func (m *ActivateRequest) XXX_Unmarshal(b []byte) error
type ActivateResponse ¶
type ActivateResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ActivateResponse) Descriptor ¶
func (*ActivateResponse) Descriptor() ([]byte, []int)
func (*ActivateResponse) GetMessage ¶
func (m *ActivateResponse) GetMessage() string
func (*ActivateResponse) ProtoMessage ¶
func (*ActivateResponse) ProtoMessage()
func (*ActivateResponse) Reset ¶
func (m *ActivateResponse) Reset()
func (*ActivateResponse) String ¶
func (m *ActivateResponse) String() string
func (*ActivateResponse) XXX_DiscardUnknown ¶
func (m *ActivateResponse) XXX_DiscardUnknown()
func (*ActivateResponse) XXX_Marshal ¶
func (m *ActivateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ActivateResponse) XXX_Merge ¶
func (m *ActivateResponse) XXX_Merge(src proto.Message)
func (*ActivateResponse) XXX_Size ¶
func (m *ActivateResponse) XXX_Size() int
func (*ActivateResponse) XXX_Unmarshal ¶
func (m *ActivateResponse) XXX_Unmarshal(b []byte) error
type AddRequest ¶
type AddRequest struct { MainData *UserMain `protobuf:"bytes,1,opt,name=mainData,proto3" json:"mainData,omitempty"` ExtraData *UserExtra `protobuf:"bytes,2,opt,name=extraData,proto3" json:"extraData,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Add Function
func (*AddRequest) Descriptor ¶
func (*AddRequest) Descriptor() ([]byte, []int)
func (*AddRequest) GetExtraData ¶
func (m *AddRequest) GetExtraData() *UserExtra
func (*AddRequest) GetMainData ¶
func (m *AddRequest) GetMainData() *UserMain
func (*AddRequest) ProtoMessage ¶
func (*AddRequest) ProtoMessage()
func (*AddRequest) Reset ¶
func (m *AddRequest) Reset()
func (*AddRequest) String ¶
func (m *AddRequest) String() string
func (*AddRequest) XXX_DiscardUnknown ¶
func (m *AddRequest) XXX_DiscardUnknown()
func (*AddRequest) XXX_Marshal ¶
func (m *AddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddRequest) XXX_Merge ¶
func (m *AddRequest) XXX_Merge(src proto.Message)
func (*AddRequest) XXX_Size ¶
func (m *AddRequest) XXX_Size() int
func (*AddRequest) XXX_Unmarshal ¶
func (m *AddRequest) XXX_Unmarshal(b []byte) error
type AddResponse ¶
type AddResponse struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddResponse) Descriptor ¶
func (*AddResponse) Descriptor() ([]byte, []int)
func (*AddResponse) GetMessage ¶
func (m *AddResponse) GetMessage() string
func (*AddResponse) GetUserID ¶
func (m *AddResponse) GetUserID() string
func (*AddResponse) ProtoMessage ¶
func (*AddResponse) ProtoMessage()
func (*AddResponse) Reset ¶
func (m *AddResponse) Reset()
func (*AddResponse) String ¶
func (m *AddResponse) String() string
func (*AddResponse) XXX_DiscardUnknown ¶
func (m *AddResponse) XXX_DiscardUnknown()
func (*AddResponse) XXX_Marshal ¶
func (m *AddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddResponse) XXX_Merge ¶
func (m *AddResponse) XXX_Merge(src proto.Message)
func (*AddResponse) XXX_Size ¶
func (m *AddResponse) XXX_Size() int
func (*AddResponse) XXX_Unmarshal ¶
func (m *AddResponse) XXX_Unmarshal(b []byte) error
type AuthRequest ¶
type AuthRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Auth Function
func (*AuthRequest) Descriptor ¶
func (*AuthRequest) Descriptor() ([]byte, []int)
func (*AuthRequest) GetEmail ¶
func (m *AuthRequest) GetEmail() string
func (*AuthRequest) GetPassword ¶
func (m *AuthRequest) GetPassword() string
func (*AuthRequest) GetUsername ¶
func (m *AuthRequest) GetUsername() 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 AuthResponse ¶
type AuthResponse struct { Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` UserID string `protobuf:"bytes,3,opt,name=userID,proto3" json:"userID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthResponse) Descriptor ¶
func (*AuthResponse) Descriptor() ([]byte, []int)
func (*AuthResponse) GetMessage ¶
func (m *AuthResponse) GetMessage() string
func (*AuthResponse) GetUserID ¶
func (m *AuthResponse) GetUserID() string
func (*AuthResponse) GetValid ¶
func (m *AuthResponse) GetValid() bool
func (*AuthResponse) ProtoMessage ¶
func (*AuthResponse) ProtoMessage()
func (*AuthResponse) Reset ¶
func (m *AuthResponse) Reset()
func (*AuthResponse) String ¶
func (m *AuthResponse) String() string
func (*AuthResponse) XXX_DiscardUnknown ¶
func (m *AuthResponse) XXX_DiscardUnknown()
func (*AuthResponse) XXX_Marshal ¶
func (m *AuthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuthResponse) XXX_Merge ¶
func (m *AuthResponse) XXX_Merge(src proto.Message)
func (*AuthResponse) XXX_Size ¶
func (m *AuthResponse) XXX_Size() int
func (*AuthResponse) XXX_Unmarshal ¶
func (m *AuthResponse) XXX_Unmarshal(b []byte) error
type GetRequest ¶
type GetRequest struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Type Type `protobuf:"varint,4,opt,name=type,proto3,enum=Type" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Get Function
func (*GetRequest) Descriptor ¶
func (*GetRequest) Descriptor() ([]byte, []int)
func (*GetRequest) GetEmail ¶ added in v0.0.21
func (m *GetRequest) GetEmail() string
func (*GetRequest) GetType ¶ added in v0.0.22
func (m *GetRequest) GetType() Type
func (*GetRequest) GetUserID ¶
func (m *GetRequest) GetUserID() string
func (*GetRequest) GetUsername ¶ added in v0.0.21
func (m *GetRequest) GetUsername() 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 GetResponse ¶ added in v0.0.21
type GetResponse struct { Main *UserMain `protobuf:"bytes,1,opt,name=main,proto3" json:"main,omitempty"` Extra *UserExtra `protobuf:"bytes,2,opt,name=extra,proto3" json:"extra,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetResponse) Descriptor ¶ added in v0.0.21
func (*GetResponse) Descriptor() ([]byte, []int)
func (*GetResponse) GetExtra ¶ added in v0.0.21
func (m *GetResponse) GetExtra() *UserExtra
func (*GetResponse) GetMain ¶ added in v0.0.21
func (m *GetResponse) GetMain() *UserMain
func (*GetResponse) ProtoMessage ¶ added in v0.0.21
func (*GetResponse) ProtoMessage()
func (*GetResponse) Reset ¶ added in v0.0.21
func (m *GetResponse) Reset()
func (*GetResponse) String ¶ added in v0.0.21
func (m *GetResponse) String() string
func (*GetResponse) XXX_DiscardUnknown ¶ added in v0.0.21
func (m *GetResponse) XXX_DiscardUnknown()
func (*GetResponse) XXX_Marshal ¶ added in v0.0.21
func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetResponse) XXX_Merge ¶ added in v0.0.21
func (m *GetResponse) XXX_Merge(src proto.Message)
func (*GetResponse) XXX_Size ¶ added in v0.0.21
func (m *GetResponse) XXX_Size() int
func (*GetResponse) XXX_Unmarshal ¶ added in v0.0.21
func (m *GetResponse) XXX_Unmarshal(b []byte) error
type UnimplementedUsersServer ¶
type UnimplementedUsersServer struct { }
UnimplementedUsersServer can be embedded to have forward compatible implementations.
func (*UnimplementedUsersServer) Activate ¶
func (*UnimplementedUsersServer) Activate(ctx context.Context, req *ActivateRequest) (*ActivateResponse, error)
func (*UnimplementedUsersServer) Add ¶
func (*UnimplementedUsersServer) Add(ctx context.Context, req *AddRequest) (*AddResponse, error)
func (*UnimplementedUsersServer) Auth ¶
func (*UnimplementedUsersServer) Auth(ctx context.Context, req *AuthRequest) (*AuthResponse, error)
func (*UnimplementedUsersServer) Get ¶
func (*UnimplementedUsersServer) Get(ctx context.Context, req *GetRequest) (*UserMain, error)
func (*UnimplementedUsersServer) Update ¶
func (*UnimplementedUsersServer) Update(ctx context.Context, req *UpdateRequest) (*UpdateResponse, error)
type UpdateRequest ¶
type UpdateRequest struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` Main *UserMain `protobuf:"bytes,2,opt,name=main,proto3" json:"main,omitempty"` Extra *UserExtra `protobuf:"bytes,3,opt,name=extra,proto3" json:"extra,omitempty"` Type Type `protobuf:"varint,4,opt,name=type,proto3,enum=Type" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Update function
func (*UpdateRequest) Descriptor ¶
func (*UpdateRequest) Descriptor() ([]byte, []int)
func (*UpdateRequest) GetExtra ¶ added in v0.0.21
func (m *UpdateRequest) GetExtra() *UserExtra
func (*UpdateRequest) GetMain ¶ added in v0.0.21
func (m *UpdateRequest) GetMain() *UserMain
func (*UpdateRequest) GetType ¶ added in v0.0.22
func (m *UpdateRequest) GetType() Type
func (*UpdateRequest) GetUserID ¶
func (m *UpdateRequest) GetUserID() string
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) Reset ¶
func (m *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (m *UpdateRequest) String() string
func (*UpdateRequest) XXX_DiscardUnknown ¶
func (m *UpdateRequest) XXX_DiscardUnknown()
func (*UpdateRequest) XXX_Marshal ¶
func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateRequest) XXX_Merge ¶
func (m *UpdateRequest) XXX_Merge(src proto.Message)
func (*UpdateRequest) XXX_Size ¶
func (m *UpdateRequest) XXX_Size() int
func (*UpdateRequest) XXX_Unmarshal ¶
func (m *UpdateRequest) XXX_Unmarshal(b []byte) error
type UpdateResponse ¶
type UpdateResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateResponse) Descriptor ¶
func (*UpdateResponse) Descriptor() ([]byte, []int)
func (*UpdateResponse) GetMessage ¶
func (m *UpdateResponse) GetMessage() string
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) Reset ¶
func (m *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (m *UpdateResponse) String() string
func (*UpdateResponse) XXX_DiscardUnknown ¶
func (m *UpdateResponse) XXX_DiscardUnknown()
func (*UpdateResponse) XXX_Marshal ¶
func (m *UpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateResponse) XXX_Merge ¶
func (m *UpdateResponse) XXX_Merge(src proto.Message)
func (*UpdateResponse) XXX_Size ¶
func (m *UpdateResponse) XXX_Size() int
func (*UpdateResponse) XXX_Unmarshal ¶
func (m *UpdateResponse) XXX_Unmarshal(b []byte) error
type UserExtra ¶
type UserExtra struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` FirstName string `protobuf:"bytes,2,opt,name=firstName,proto3" json:"firstName,omitempty"` LastName string `protobuf:"bytes,3,opt,name=lastName,proto3" json:"lastName,omitempty"` Gender string `protobuf:"bytes,4,opt,name=gender,proto3" json:"gender,omitempty"` BirthdayUTC int64 `protobuf:"varint,5,opt,name=birthdayUTC,proto3" json:"birthdayUTC,omitempty"` Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserExtra) Descriptor ¶
func (*UserExtra) GetBirthdayUTC ¶
func (*UserExtra) GetFirstName ¶
func (*UserExtra) GetLastName ¶
func (*UserExtra) GetMessage ¶
func (*UserExtra) ProtoMessage ¶
func (*UserExtra) ProtoMessage()
func (*UserExtra) XXX_DiscardUnknown ¶
func (m *UserExtra) XXX_DiscardUnknown()
func (*UserExtra) XXX_Marshal ¶
func (*UserExtra) XXX_Unmarshal ¶
type UserMain ¶
type UserMain struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserMain) Descriptor ¶
func (*UserMain) GetMessage ¶
func (*UserMain) GetPassword ¶
func (*UserMain) GetUsername ¶
func (*UserMain) ProtoMessage ¶
func (*UserMain) ProtoMessage()
func (*UserMain) XXX_DiscardUnknown ¶
func (m *UserMain) XXX_DiscardUnknown()
func (*UserMain) XXX_Marshal ¶
func (*UserMain) XXX_Unmarshal ¶
type UsersClient ¶
type UsersClient interface { Add(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddResponse, error) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*UserMain, error) Auth(ctx context.Context, in *AuthRequest, opts ...grpc.CallOption) (*AuthResponse, error) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) Activate(ctx context.Context, in *ActivateRequest, opts ...grpc.CallOption) (*ActivateResponse, error) }
UsersClient is the client API for Users service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUsersClient ¶
func NewUsersClient(cc *grpc.ClientConn) UsersClient
type UsersServer ¶
type UsersServer interface { Add(context.Context, *AddRequest) (*AddResponse, error) Get(context.Context, *GetRequest) (*UserMain, error) Auth(context.Context, *AuthRequest) (*AuthResponse, error) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) Activate(context.Context, *ActivateRequest) (*ActivateResponse, error) }
UsersServer is the server API for Users service.
Click to show internal directories.
Click to hide internal directories.