Documentation ¶
Overview ¶
Package userv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterUserAuthenServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterUserAuthenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserAuthenServiceClient) error
- func RegisterUserAuthenServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterUserAuthenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserAuthenServiceServer) error
- func RegisterUserAuthenServiceServer(s grpc.ServiceRegistrar, srv UserAuthenServiceServer)
- func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error
- func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)
- func (m *CreateRequest) GetEmail() string
- func (m *CreateRequest) GetPassword() string
- func (m *CreateRequest) GetRole() Role
- func (m *CreateRequest) GetUsername() string
- func (this *CreateRequest) GoString() string
- func (m *CreateRequest) Marshal() (dAtA []byte, err error)
- func (m *CreateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *CreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CreateRequest) ProtoMessage()
- func (m *CreateRequest) Reset()
- func (m *CreateRequest) Size() (n int)
- func (this *CreateRequest) String() string
- func (m *CreateRequest) Unmarshal(dAtA []byte) error
- func (m *CreateRequest) XXX_DiscardUnknown()
- func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateRequest) XXX_Merge(src proto.Message)
- func (m *CreateRequest) XXX_Size() int
- func (m *CreateRequest) XXX_Unmarshal(b []byte) error
- type CreateResponse
- func (*CreateResponse) Descriptor() ([]byte, []int)
- func (m *CreateResponse) GetEmail() string
- func (m *CreateResponse) GetId() uint64
- func (m *CreateResponse) GetRole() Role
- func (m *CreateResponse) GetUsername() string
- func (this *CreateResponse) GoString() string
- func (m *CreateResponse) Marshal() (dAtA []byte, err error)
- func (m *CreateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *CreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CreateResponse) ProtoMessage()
- func (m *CreateResponse) Reset()
- func (m *CreateResponse) Size() (n int)
- func (this *CreateResponse) String() string
- func (m *CreateResponse) Unmarshal(dAtA []byte) error
- func (m *CreateResponse) XXX_DiscardUnknown()
- func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateResponse) XXX_Merge(src proto.Message)
- func (m *CreateResponse) XXX_Size() int
- func (m *CreateResponse) XXX_Unmarshal(b []byte) error
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)
- func (m *DeleteRequest) GetId() uint64
- func (this *DeleteRequest) GoString() string
- func (m *DeleteRequest) Marshal() (dAtA []byte, err error)
- func (m *DeleteRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *DeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeleteRequest) ProtoMessage()
- func (m *DeleteRequest) Reset()
- func (m *DeleteRequest) Size() (n int)
- func (this *DeleteRequest) String() string
- func (m *DeleteRequest) Unmarshal(dAtA []byte) error
- func (m *DeleteRequest) XXX_DiscardUnknown()
- func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteRequest) XXX_Merge(src proto.Message)
- func (m *DeleteRequest) XXX_Size() int
- func (m *DeleteRequest) XXX_Unmarshal(b []byte) error
- type DeleteResponse
- func (*DeleteResponse) Descriptor() ([]byte, []int)
- func (this *DeleteResponse) GoString() string
- func (m *DeleteResponse) Marshal() (dAtA []byte, err error)
- func (m *DeleteResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *DeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeleteResponse) ProtoMessage()
- func (m *DeleteResponse) Reset()
- func (m *DeleteResponse) Size() (n int)
- func (this *DeleteResponse) String() string
- func (m *DeleteResponse) Unmarshal(dAtA []byte) error
- func (m *DeleteResponse) XXX_DiscardUnknown()
- func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteResponse) XXX_Merge(src proto.Message)
- func (m *DeleteResponse) XXX_Size() int
- func (m *DeleteResponse) XXX_Unmarshal(b []byte) error
- type Filter
- func (*Filter) Descriptor() ([]byte, []int)
- func (m *Filter) GetKey() string
- func (m *Filter) GetMethod() string
- func (m *Filter) GetValue() string
- func (this *Filter) GoString() string
- func (m *Filter) Marshal() (dAtA []byte, err error)
- func (m *Filter) MarshalTo(dAtA []byte) (int, error)
- func (m *Filter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Filter) ProtoMessage()
- func (m *Filter) Reset()
- func (m *Filter) Size() (n int)
- func (this *Filter) String() string
- func (m *Filter) Unmarshal(dAtA []byte) error
- func (m *Filter) XXX_DiscardUnknown()
- func (m *Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Filter) XXX_Merge(src proto.Message)
- func (m *Filter) XXX_Size() int
- func (m *Filter) XXX_Unmarshal(b []byte) error
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)
- func (m *ListRequest) GetFilters() []*Filter
- func (m *ListRequest) GetPagination() *Pagination
- func (m *ListRequest) GetSort() *Sort
- func (this *ListRequest) GoString() string
- func (m *ListRequest) Marshal() (dAtA []byte, err error)
- func (m *ListRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListRequest) ProtoMessage()
- func (m *ListRequest) Reset()
- func (m *ListRequest) Size() (n int)
- func (this *ListRequest) String() string
- func (m *ListRequest) Unmarshal(dAtA []byte) error
- func (m *ListRequest) XXX_DiscardUnknown()
- func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListRequest) XXX_Merge(src proto.Message)
- func (m *ListRequest) XXX_Size() int
- func (m *ListRequest) XXX_Unmarshal(b []byte) error
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)
- func (m *ListResponse) GetUsers() []*UserList
- func (this *ListResponse) GoString() string
- func (m *ListResponse) Marshal() (dAtA []byte, err error)
- func (m *ListResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListResponse) ProtoMessage()
- func (m *ListResponse) Reset()
- func (m *ListResponse) Size() (n int)
- func (this *ListResponse) String() string
- func (m *ListResponse) Unmarshal(dAtA []byte) error
- func (m *ListResponse) XXX_DiscardUnknown()
- func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListResponse) XXX_Merge(src proto.Message)
- func (m *ListResponse) XXX_Size() int
- func (m *ListResponse) XXX_Unmarshal(b []byte) error
- type Pagination
- func (*Pagination) Descriptor() ([]byte, []int)
- func (m *Pagination) GetLimit() uint64
- func (m *Pagination) GetPage() uint64
- func (this *Pagination) GoString() string
- func (m *Pagination) Marshal() (dAtA []byte, err error)
- func (m *Pagination) MarshalTo(dAtA []byte) (int, error)
- func (m *Pagination) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Pagination) ProtoMessage()
- func (m *Pagination) Reset()
- func (m *Pagination) Size() (n int)
- func (this *Pagination) String() string
- func (m *Pagination) Unmarshal(dAtA []byte) error
- func (m *Pagination) XXX_DiscardUnknown()
- func (m *Pagination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pagination) XXX_Merge(src proto.Message)
- func (m *Pagination) XXX_Size() int
- func (m *Pagination) XXX_Unmarshal(b []byte) error
- type PingRequest
- func (*PingRequest) Descriptor() ([]byte, []int)
- func (this *PingRequest) GoString() string
- func (m *PingRequest) Marshal() (dAtA []byte, err error)
- func (m *PingRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *PingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PingRequest) ProtoMessage()
- func (m *PingRequest) Reset()
- func (m *PingRequest) Size() (n int)
- func (this *PingRequest) String() string
- func (m *PingRequest) Unmarshal(dAtA []byte) error
- func (m *PingRequest) XXX_DiscardUnknown()
- func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PingRequest) XXX_Merge(src proto.Message)
- func (m *PingRequest) XXX_Size() int
- func (m *PingRequest) XXX_Unmarshal(b []byte) error
- type PingResponse
- func (*PingResponse) Descriptor() ([]byte, []int)
- func (this *PingResponse) GoString() string
- func (m *PingResponse) Marshal() (dAtA []byte, err error)
- func (m *PingResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *PingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PingResponse) ProtoMessage()
- func (m *PingResponse) Reset()
- func (m *PingResponse) Size() (n int)
- func (this *PingResponse) String() string
- func (m *PingResponse) Unmarshal(dAtA []byte) error
- func (m *PingResponse) XXX_DiscardUnknown()
- func (m *PingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PingResponse) XXX_Merge(src proto.Message)
- func (m *PingResponse) XXX_Size() int
- func (m *PingResponse) XXX_Unmarshal(b []byte) error
- type RetrieveRequest
- func (*RetrieveRequest) Descriptor() ([]byte, []int)
- func (m *RetrieveRequest) GetId() uint64
- func (this *RetrieveRequest) GoString() string
- func (m *RetrieveRequest) Marshal() (dAtA []byte, err error)
- func (m *RetrieveRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *RetrieveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RetrieveRequest) ProtoMessage()
- func (m *RetrieveRequest) Reset()
- func (m *RetrieveRequest) Size() (n int)
- func (this *RetrieveRequest) String() string
- func (m *RetrieveRequest) Unmarshal(dAtA []byte) error
- func (m *RetrieveRequest) XXX_DiscardUnknown()
- func (m *RetrieveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RetrieveRequest) XXX_Merge(src proto.Message)
- func (m *RetrieveRequest) XXX_Size() int
- func (m *RetrieveRequest) XXX_Unmarshal(b []byte) error
- type RetrieveResponse
- func (*RetrieveResponse) Descriptor() ([]byte, []int)
- func (m *RetrieveResponse) GetEmail() string
- func (m *RetrieveResponse) GetId() uint64
- func (m *RetrieveResponse) GetRole() Role
- func (m *RetrieveResponse) GetUsername() string
- func (this *RetrieveResponse) GoString() string
- func (m *RetrieveResponse) Marshal() (dAtA []byte, err error)
- func (m *RetrieveResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *RetrieveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RetrieveResponse) ProtoMessage()
- func (m *RetrieveResponse) Reset()
- func (m *RetrieveResponse) Size() (n int)
- func (this *RetrieveResponse) String() string
- func (m *RetrieveResponse) Unmarshal(dAtA []byte) error
- func (m *RetrieveResponse) XXX_DiscardUnknown()
- func (m *RetrieveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RetrieveResponse) XXX_Merge(src proto.Message)
- func (m *RetrieveResponse) XXX_Size() int
- func (m *RetrieveResponse) XXX_Unmarshal(b []byte) error
- type Role
- type Sort
- func (*Sort) Descriptor() ([]byte, []int)
- func (m *Sort) GetIsAsc() bool
- func (m *Sort) GetKey() string
- func (this *Sort) GoString() string
- func (m *Sort) Marshal() (dAtA []byte, err error)
- func (m *Sort) MarshalTo(dAtA []byte) (int, error)
- func (m *Sort) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Sort) ProtoMessage()
- func (m *Sort) Reset()
- func (m *Sort) Size() (n int)
- func (this *Sort) String() string
- func (m *Sort) Unmarshal(dAtA []byte) error
- func (m *Sort) XXX_DiscardUnknown()
- func (m *Sort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Sort) XXX_Merge(src proto.Message)
- func (m *Sort) XXX_Size() int
- func (m *Sort) XXX_Unmarshal(b []byte) error
- type UnimplementedUserAuthenServiceServer
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
- func (UnimplementedUserServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
- func (UnimplementedUserServiceServer) List(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedUserServiceServer) Ping(context.Context, *PingRequest) (*PingResponse, error)
- func (UnimplementedUserServiceServer) Retrieve(context.Context, *RetrieveRequest) (*RetrieveResponse, error)
- func (UnimplementedUserServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
- type UnsafeUserAuthenServiceServer
- type UnsafeUserServiceServer
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)
- func (m *UpdateRequest) GetEmail() *types.StringValue
- func (m *UpdateRequest) GetId() uint64
- func (m *UpdateRequest) GetPassword() *types.StringValue
- func (m *UpdateRequest) GetRole() Role
- func (m *UpdateRequest) GetUsername() *types.StringValue
- func (this *UpdateRequest) GoString() string
- func (m *UpdateRequest) Marshal() (dAtA []byte, err error)
- func (m *UpdateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UpdateRequest) ProtoMessage()
- func (m *UpdateRequest) Reset()
- func (m *UpdateRequest) Size() (n int)
- func (this *UpdateRequest) String() string
- func (m *UpdateRequest) Unmarshal(dAtA []byte) error
- 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) GetEmail() string
- func (m *UpdateResponse) GetId() uint64
- func (m *UpdateResponse) GetRole() Role
- func (m *UpdateResponse) GetUsername() string
- func (this *UpdateResponse) GoString() string
- func (m *UpdateResponse) Marshal() (dAtA []byte, err error)
- func (m *UpdateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UpdateResponse) ProtoMessage()
- func (m *UpdateResponse) Reset()
- func (m *UpdateResponse) Size() (n int)
- func (this *UpdateResponse) String() string
- func (m *UpdateResponse) Unmarshal(dAtA []byte) error
- 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 UserAuthenServiceClient
- type UserAuthenServiceServer
- type UserList
- func (*UserList) Descriptor() ([]byte, []int)
- func (m *UserList) GetEmail() string
- func (m *UserList) GetId() uint64
- func (m *UserList) GetRole() Role
- func (m *UserList) GetUsername() string
- func (this *UserList) GoString() string
- func (m *UserList) Marshal() (dAtA []byte, err error)
- func (m *UserList) MarshalTo(dAtA []byte) (int, error)
- func (m *UserList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UserList) ProtoMessage()
- func (m *UserList) Reset()
- func (m *UserList) Size() (n int)
- func (this *UserList) String() string
- func (m *UserList) Unmarshal(dAtA []byte) error
- func (m *UserList) XXX_DiscardUnknown()
- func (m *UserList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserList) XXX_Merge(src proto.Message)
- func (m *UserList) XXX_Size() int
- func (m *UserList) XXX_Unmarshal(b []byte) error
- type UserLoginRequest
- func (*UserLoginRequest) Descriptor() ([]byte, []int)
- func (m *UserLoginRequest) GetPassword() string
- func (m *UserLoginRequest) GetUsername() string
- func (this *UserLoginRequest) GoString() string
- 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 (this *UserLoginRequest) String() string
- func (m *UserLoginRequest) Unmarshal(dAtA []byte) 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 UserLoginResponse
- func (*UserLoginResponse) Descriptor() ([]byte, []int)
- func (m *UserLoginResponse) GetEmail() string
- func (m *UserLoginResponse) GetId() uint64
- func (m *UserLoginResponse) GetRole() string
- func (m *UserLoginResponse) GetUsername() string
- func (this *UserLoginResponse) GoString() string
- func (m *UserLoginResponse) Marshal() (dAtA []byte, err error)
- func (m *UserLoginResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *UserLoginResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UserLoginResponse) ProtoMessage()
- func (m *UserLoginResponse) Reset()
- func (m *UserLoginResponse) Size() (n int)
- func (this *UserLoginResponse) String() string
- func (m *UserLoginResponse) Unmarshal(dAtA []byte) error
- func (m *UserLoginResponse) XXX_DiscardUnknown()
- func (m *UserLoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserLoginResponse) XXX_Merge(src proto.Message)
- func (m *UserLoginResponse) XXX_Size() int
- func (m *UserLoginResponse) XXX_Unmarshal(b []byte) error
- type UserServiceClient
- type UserServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthUser = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowUser = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupUser = fmt.Errorf("proto: unexpected end of group") )
var Role_name = map[int32]string{
0: "ROLE_UNSPECIFIED",
1: "ROLE_ADMIN",
2: "ROLE_USER",
}
var Role_value = map[string]int32{
"ROLE_UNSPECIFIED": 0,
"ROLE_ADMIN": 1,
"ROLE_USER": 2,
}
var UserAuthenService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.v1.UserAuthenService", HandlerType: (*UserAuthenServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _UserAuthenService_Login_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/user/user.proto", }
UserAuthenService_ServiceDesc is the grpc.ServiceDesc for UserAuthenService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.v1.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _UserService_Ping_Handler, }, { MethodName: "Create", Handler: _UserService_Create_Handler, }, { MethodName: "Retrieve", Handler: _UserService_Retrieve_Handler, }, { MethodName: "Update", Handler: _UserService_Update_Handler, }, { MethodName: "Delete", Handler: _UserService_Delete_Handler, }, { MethodName: "List", Handler: _UserService_List_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/user/user.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserAuthenServiceHandler ¶
func RegisterUserAuthenServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterUserAuthenServiceHandler registers the http handlers for service UserAuthenService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterUserAuthenServiceHandlerClient ¶
func RegisterUserAuthenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserAuthenServiceClient) error
RegisterUserAuthenServiceHandlerClient registers the http handlers for service UserAuthenService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserAuthenServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserAuthenServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserAuthenServiceClient" to call the correct interceptors.
func RegisterUserAuthenServiceHandlerFromEndpoint ¶
func RegisterUserAuthenServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterUserAuthenServiceHandlerFromEndpoint is same as RegisterUserAuthenServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterUserAuthenServiceHandlerServer ¶
func RegisterUserAuthenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserAuthenServiceServer) error
RegisterUserAuthenServiceHandlerServer registers the http handlers for service UserAuthenService to "mux". UnaryRPC :call UserAuthenServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterUserAuthenServiceHandlerFromEndpoint instead.
func RegisterUserAuthenServiceServer ¶
func RegisterUserAuthenServiceServer(s grpc.ServiceRegistrar, srv UserAuthenServiceServer)
func RegisterUserServiceHandler ¶
func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterUserServiceHandler registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterUserServiceHandlerClient ¶
func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error
RegisterUserServiceHandlerClient registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserServiceClient" to call the correct interceptors.
func RegisterUserServiceHandlerFromEndpoint ¶
func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterUserServiceHandlerFromEndpoint is same as RegisterUserServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterUserServiceHandlerServer ¶
func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error
RegisterUserServiceHandlerServer registers the http handlers for service UserService to "mux". UnaryRPC :call UserServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterUserServiceHandlerFromEndpoint instead.
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type CreateRequest ¶
type CreateRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty" validate:"required,gt=3"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty" validate:"required,gt=4"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty" validate:"required,email"` Role Role `protobuf:"varint,4,opt,name=role,proto3,enum=user.v1.Role" json:"role,omitempty"` }
func (*CreateRequest) Descriptor ¶
func (*CreateRequest) Descriptor() ([]byte, []int)
func (*CreateRequest) GetEmail ¶
func (m *CreateRequest) GetEmail() string
func (*CreateRequest) GetPassword ¶
func (m *CreateRequest) GetPassword() string
func (*CreateRequest) GetRole ¶
func (m *CreateRequest) GetRole() Role
func (*CreateRequest) GetUsername ¶
func (m *CreateRequest) GetUsername() string
func (*CreateRequest) GoString ¶
func (this *CreateRequest) GoString() string
func (*CreateRequest) Marshal ¶
func (m *CreateRequest) Marshal() (dAtA []byte, err error)
func (*CreateRequest) MarshalToSizedBuffer ¶
func (m *CreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) Reset ¶
func (m *CreateRequest) Reset()
func (*CreateRequest) Size ¶
func (m *CreateRequest) Size() (n int)
func (*CreateRequest) String ¶
func (this *CreateRequest) String() string
func (*CreateRequest) Unmarshal ¶
func (m *CreateRequest) Unmarshal(dAtA []byte) error
func (*CreateRequest) XXX_DiscardUnknown ¶
func (m *CreateRequest) XXX_DiscardUnknown()
func (*CreateRequest) XXX_Marshal ¶
func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateRequest) XXX_Merge ¶
func (m *CreateRequest) XXX_Merge(src proto.Message)
func (*CreateRequest) XXX_Size ¶
func (m *CreateRequest) XXX_Size() int
func (*CreateRequest) XXX_Unmarshal ¶
func (m *CreateRequest) XXX_Unmarshal(b []byte) error
type CreateResponse ¶
type CreateResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,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"` Role Role `protobuf:"varint,4,opt,name=role,proto3,enum=user.v1.Role" json:"role,omitempty"` }
func (*CreateResponse) Descriptor ¶
func (*CreateResponse) Descriptor() ([]byte, []int)
func (*CreateResponse) GetEmail ¶
func (m *CreateResponse) GetEmail() string
func (*CreateResponse) GetId ¶
func (m *CreateResponse) GetId() uint64
func (*CreateResponse) GetRole ¶
func (m *CreateResponse) GetRole() Role
func (*CreateResponse) GetUsername ¶
func (m *CreateResponse) GetUsername() string
func (*CreateResponse) GoString ¶
func (this *CreateResponse) GoString() string
func (*CreateResponse) Marshal ¶
func (m *CreateResponse) Marshal() (dAtA []byte, err error)
func (*CreateResponse) MarshalToSizedBuffer ¶
func (m *CreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) Reset ¶
func (m *CreateResponse) Reset()
func (*CreateResponse) Size ¶
func (m *CreateResponse) Size() (n int)
func (*CreateResponse) String ¶
func (this *CreateResponse) String() string
func (*CreateResponse) Unmarshal ¶
func (m *CreateResponse) Unmarshal(dAtA []byte) error
func (*CreateResponse) XXX_DiscardUnknown ¶
func (m *CreateResponse) XXX_DiscardUnknown()
func (*CreateResponse) XXX_Marshal ¶
func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateResponse) XXX_Merge ¶
func (m *CreateResponse) XXX_Merge(src proto.Message)
func (*CreateResponse) XXX_Size ¶
func (m *CreateResponse) XXX_Size() int
func (*CreateResponse) XXX_Unmarshal ¶
func (m *CreateResponse) XXX_Unmarshal(b []byte) error
type DeleteRequest ¶
type DeleteRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" validate:"required,gt=0"`
}
func (*DeleteRequest) Descriptor ¶
func (*DeleteRequest) Descriptor() ([]byte, []int)
func (*DeleteRequest) GetId ¶
func (m *DeleteRequest) GetId() uint64
func (*DeleteRequest) GoString ¶
func (this *DeleteRequest) GoString() string
func (*DeleteRequest) Marshal ¶
func (m *DeleteRequest) Marshal() (dAtA []byte, err error)
func (*DeleteRequest) MarshalToSizedBuffer ¶
func (m *DeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) Reset ¶
func (m *DeleteRequest) Reset()
func (*DeleteRequest) Size ¶
func (m *DeleteRequest) Size() (n int)
func (*DeleteRequest) String ¶
func (this *DeleteRequest) String() string
func (*DeleteRequest) Unmarshal ¶
func (m *DeleteRequest) Unmarshal(dAtA []byte) error
func (*DeleteRequest) XXX_DiscardUnknown ¶
func (m *DeleteRequest) XXX_DiscardUnknown()
func (*DeleteRequest) XXX_Marshal ¶
func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteRequest) XXX_Merge ¶
func (m *DeleteRequest) XXX_Merge(src proto.Message)
func (*DeleteRequest) XXX_Size ¶
func (m *DeleteRequest) XXX_Size() int
func (*DeleteRequest) XXX_Unmarshal ¶
func (m *DeleteRequest) XXX_Unmarshal(b []byte) error
type DeleteResponse ¶
type DeleteResponse struct { }
func (*DeleteResponse) Descriptor ¶
func (*DeleteResponse) Descriptor() ([]byte, []int)
func (*DeleteResponse) GoString ¶
func (this *DeleteResponse) GoString() string
func (*DeleteResponse) Marshal ¶
func (m *DeleteResponse) Marshal() (dAtA []byte, err error)
func (*DeleteResponse) MarshalToSizedBuffer ¶
func (m *DeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) Reset ¶
func (m *DeleteResponse) Reset()
func (*DeleteResponse) Size ¶
func (m *DeleteResponse) Size() (n int)
func (*DeleteResponse) String ¶
func (this *DeleteResponse) String() string
func (*DeleteResponse) Unmarshal ¶
func (m *DeleteResponse) Unmarshal(dAtA []byte) error
func (*DeleteResponse) XXX_DiscardUnknown ¶
func (m *DeleteResponse) XXX_DiscardUnknown()
func (*DeleteResponse) XXX_Marshal ¶
func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteResponse) XXX_Merge ¶
func (m *DeleteResponse) XXX_Merge(src proto.Message)
func (*DeleteResponse) XXX_Size ¶
func (m *DeleteResponse) XXX_Size() int
func (*DeleteResponse) XXX_Unmarshal ¶
func (m *DeleteResponse) XXX_Unmarshal(b []byte) error
type Filter ¶
type Filter struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"` }
func (*Filter) Descriptor ¶
func (*Filter) MarshalToSizedBuffer ¶
func (*Filter) ProtoMessage ¶
func (*Filter) ProtoMessage()
func (*Filter) XXX_DiscardUnknown ¶
func (m *Filter) XXX_DiscardUnknown()
func (*Filter) XXX_Marshal ¶
func (*Filter) XXX_Unmarshal ¶
type ListRequest ¶
type ListRequest struct { Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Filters []*Filter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` Sort *Sort `protobuf:"bytes,3,opt,name=sort,proto3" json:"sort,omitempty"` }
func (*ListRequest) Descriptor ¶
func (*ListRequest) Descriptor() ([]byte, []int)
func (*ListRequest) GetFilters ¶
func (m *ListRequest) GetFilters() []*Filter
func (*ListRequest) GetPagination ¶
func (m *ListRequest) GetPagination() *Pagination
func (*ListRequest) GetSort ¶
func (m *ListRequest) GetSort() *Sort
func (*ListRequest) GoString ¶
func (this *ListRequest) GoString() string
func (*ListRequest) Marshal ¶
func (m *ListRequest) Marshal() (dAtA []byte, err error)
func (*ListRequest) MarshalToSizedBuffer ¶
func (m *ListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) Reset ¶
func (m *ListRequest) Reset()
func (*ListRequest) Size ¶
func (m *ListRequest) Size() (n int)
func (*ListRequest) String ¶
func (this *ListRequest) String() string
func (*ListRequest) Unmarshal ¶
func (m *ListRequest) Unmarshal(dAtA []byte) error
func (*ListRequest) XXX_DiscardUnknown ¶
func (m *ListRequest) XXX_DiscardUnknown()
func (*ListRequest) XXX_Marshal ¶
func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListRequest) XXX_Merge ¶
func (m *ListRequest) XXX_Merge(src proto.Message)
func (*ListRequest) XXX_Size ¶
func (m *ListRequest) XXX_Size() int
func (*ListRequest) XXX_Unmarshal ¶
func (m *ListRequest) XXX_Unmarshal(b []byte) error
type ListResponse ¶
type ListResponse struct {
Users []*UserList `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
}
func (*ListResponse) Descriptor ¶
func (*ListResponse) Descriptor() ([]byte, []int)
func (*ListResponse) GetUsers ¶
func (m *ListResponse) GetUsers() []*UserList
func (*ListResponse) GoString ¶
func (this *ListResponse) GoString() string
func (*ListResponse) Marshal ¶
func (m *ListResponse) Marshal() (dAtA []byte, err error)
func (*ListResponse) MarshalToSizedBuffer ¶
func (m *ListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) Reset ¶
func (m *ListResponse) Reset()
func (*ListResponse) Size ¶
func (m *ListResponse) Size() (n int)
func (*ListResponse) String ¶
func (this *ListResponse) String() string
func (*ListResponse) Unmarshal ¶
func (m *ListResponse) Unmarshal(dAtA []byte) error
func (*ListResponse) XXX_DiscardUnknown ¶
func (m *ListResponse) XXX_DiscardUnknown()
func (*ListResponse) XXX_Marshal ¶
func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListResponse) XXX_Merge ¶
func (m *ListResponse) XXX_Merge(src proto.Message)
func (*ListResponse) XXX_Size ¶
func (m *ListResponse) XXX_Size() int
func (*ListResponse) XXX_Unmarshal ¶
func (m *ListResponse) XXX_Unmarshal(b []byte) error
type Pagination ¶
type Pagination struct { Limit uint64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty" validate:"omitempty,gt=0"` Page uint64 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty" validate:"omitempty,gt=0"` }
func (*Pagination) Descriptor ¶
func (*Pagination) Descriptor() ([]byte, []int)
func (*Pagination) GetLimit ¶
func (m *Pagination) GetLimit() uint64
func (*Pagination) GetPage ¶
func (m *Pagination) GetPage() uint64
func (*Pagination) GoString ¶
func (this *Pagination) GoString() string
func (*Pagination) Marshal ¶
func (m *Pagination) Marshal() (dAtA []byte, err error)
func (*Pagination) MarshalToSizedBuffer ¶
func (m *Pagination) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Pagination) ProtoMessage ¶
func (*Pagination) ProtoMessage()
func (*Pagination) Reset ¶
func (m *Pagination) Reset()
func (*Pagination) Size ¶
func (m *Pagination) Size() (n int)
func (*Pagination) String ¶
func (this *Pagination) String() string
func (*Pagination) Unmarshal ¶
func (m *Pagination) Unmarshal(dAtA []byte) error
func (*Pagination) XXX_DiscardUnknown ¶
func (m *Pagination) XXX_DiscardUnknown()
func (*Pagination) XXX_Marshal ¶
func (m *Pagination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Pagination) XXX_Merge ¶
func (m *Pagination) XXX_Merge(src proto.Message)
func (*Pagination) XXX_Size ¶
func (m *Pagination) XXX_Size() int
func (*Pagination) XXX_Unmarshal ¶
func (m *Pagination) XXX_Unmarshal(b []byte) error
type PingRequest ¶
type PingRequest struct { }
func (*PingRequest) Descriptor ¶
func (*PingRequest) Descriptor() ([]byte, []int)
func (*PingRequest) GoString ¶
func (this *PingRequest) GoString() string
func (*PingRequest) Marshal ¶
func (m *PingRequest) Marshal() (dAtA []byte, err error)
func (*PingRequest) MarshalToSizedBuffer ¶
func (m *PingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PingRequest) ProtoMessage ¶
func (*PingRequest) ProtoMessage()
func (*PingRequest) Reset ¶
func (m *PingRequest) Reset()
func (*PingRequest) Size ¶
func (m *PingRequest) Size() (n int)
func (*PingRequest) String ¶
func (this *PingRequest) String() string
func (*PingRequest) Unmarshal ¶
func (m *PingRequest) Unmarshal(dAtA []byte) error
func (*PingRequest) XXX_DiscardUnknown ¶
func (m *PingRequest) XXX_DiscardUnknown()
func (*PingRequest) XXX_Marshal ¶
func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PingRequest) XXX_Merge ¶
func (m *PingRequest) XXX_Merge(src proto.Message)
func (*PingRequest) XXX_Size ¶
func (m *PingRequest) XXX_Size() int
func (*PingRequest) XXX_Unmarshal ¶
func (m *PingRequest) XXX_Unmarshal(b []byte) error
type PingResponse ¶
type PingResponse struct { }
func (*PingResponse) Descriptor ¶
func (*PingResponse) Descriptor() ([]byte, []int)
func (*PingResponse) GoString ¶
func (this *PingResponse) GoString() string
func (*PingResponse) Marshal ¶
func (m *PingResponse) Marshal() (dAtA []byte, err error)
func (*PingResponse) MarshalToSizedBuffer ¶
func (m *PingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PingResponse) ProtoMessage ¶
func (*PingResponse) ProtoMessage()
func (*PingResponse) Reset ¶
func (m *PingResponse) Reset()
func (*PingResponse) Size ¶
func (m *PingResponse) Size() (n int)
func (*PingResponse) String ¶
func (this *PingResponse) String() string
func (*PingResponse) Unmarshal ¶
func (m *PingResponse) Unmarshal(dAtA []byte) error
func (*PingResponse) XXX_DiscardUnknown ¶
func (m *PingResponse) XXX_DiscardUnknown()
func (*PingResponse) XXX_Marshal ¶
func (m *PingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PingResponse) XXX_Merge ¶
func (m *PingResponse) XXX_Merge(src proto.Message)
func (*PingResponse) XXX_Size ¶
func (m *PingResponse) XXX_Size() int
func (*PingResponse) XXX_Unmarshal ¶
func (m *PingResponse) XXX_Unmarshal(b []byte) error
type RetrieveRequest ¶
type RetrieveRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" validate:"required,gt=0"`
}
func (*RetrieveRequest) Descriptor ¶
func (*RetrieveRequest) Descriptor() ([]byte, []int)
func (*RetrieveRequest) GetId ¶
func (m *RetrieveRequest) GetId() uint64
func (*RetrieveRequest) GoString ¶
func (this *RetrieveRequest) GoString() string
func (*RetrieveRequest) Marshal ¶
func (m *RetrieveRequest) Marshal() (dAtA []byte, err error)
func (*RetrieveRequest) MarshalToSizedBuffer ¶
func (m *RetrieveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RetrieveRequest) ProtoMessage ¶
func (*RetrieveRequest) ProtoMessage()
func (*RetrieveRequest) Reset ¶
func (m *RetrieveRequest) Reset()
func (*RetrieveRequest) Size ¶
func (m *RetrieveRequest) Size() (n int)
func (*RetrieveRequest) String ¶
func (this *RetrieveRequest) String() string
func (*RetrieveRequest) Unmarshal ¶
func (m *RetrieveRequest) Unmarshal(dAtA []byte) error
func (*RetrieveRequest) XXX_DiscardUnknown ¶
func (m *RetrieveRequest) XXX_DiscardUnknown()
func (*RetrieveRequest) XXX_Marshal ¶
func (m *RetrieveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RetrieveRequest) XXX_Merge ¶
func (m *RetrieveRequest) XXX_Merge(src proto.Message)
func (*RetrieveRequest) XXX_Size ¶
func (m *RetrieveRequest) XXX_Size() int
func (*RetrieveRequest) XXX_Unmarshal ¶
func (m *RetrieveRequest) XXX_Unmarshal(b []byte) error
type RetrieveResponse ¶
type RetrieveResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,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"` Role Role `protobuf:"varint,4,opt,name=role,proto3,enum=user.v1.Role" json:"role,omitempty"` }
func (*RetrieveResponse) Descriptor ¶
func (*RetrieveResponse) Descriptor() ([]byte, []int)
func (*RetrieveResponse) GetEmail ¶
func (m *RetrieveResponse) GetEmail() string
func (*RetrieveResponse) GetId ¶
func (m *RetrieveResponse) GetId() uint64
func (*RetrieveResponse) GetRole ¶
func (m *RetrieveResponse) GetRole() Role
func (*RetrieveResponse) GetUsername ¶
func (m *RetrieveResponse) GetUsername() string
func (*RetrieveResponse) GoString ¶
func (this *RetrieveResponse) GoString() string
func (*RetrieveResponse) Marshal ¶
func (m *RetrieveResponse) Marshal() (dAtA []byte, err error)
func (*RetrieveResponse) MarshalToSizedBuffer ¶
func (m *RetrieveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RetrieveResponse) ProtoMessage ¶
func (*RetrieveResponse) ProtoMessage()
func (*RetrieveResponse) Reset ¶
func (m *RetrieveResponse) Reset()
func (*RetrieveResponse) Size ¶
func (m *RetrieveResponse) Size() (n int)
func (*RetrieveResponse) String ¶
func (this *RetrieveResponse) String() string
func (*RetrieveResponse) Unmarshal ¶
func (m *RetrieveResponse) Unmarshal(dAtA []byte) error
func (*RetrieveResponse) XXX_DiscardUnknown ¶
func (m *RetrieveResponse) XXX_DiscardUnknown()
func (*RetrieveResponse) XXX_Marshal ¶
func (m *RetrieveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RetrieveResponse) XXX_Merge ¶
func (m *RetrieveResponse) XXX_Merge(src proto.Message)
func (*RetrieveResponse) XXX_Size ¶
func (m *RetrieveResponse) XXX_Size() int
func (*RetrieveResponse) XXX_Unmarshal ¶
func (m *RetrieveResponse) XXX_Unmarshal(b []byte) error
type Sort ¶
type Sort struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` IsAsc bool `protobuf:"varint,2,opt,name=is_asc,json=isAsc,proto3" json:"is_asc,omitempty"` }
func (*Sort) Descriptor ¶
func (*Sort) ProtoMessage ¶
func (*Sort) ProtoMessage()
func (*Sort) XXX_DiscardUnknown ¶
func (m *Sort) XXX_DiscardUnknown()
func (*Sort) XXX_Unmarshal ¶
type UnimplementedUserAuthenServiceServer ¶
type UnimplementedUserAuthenServiceServer struct { }
UnimplementedUserAuthenServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedUserAuthenServiceServer) Login ¶
func (UnimplementedUserAuthenServiceServer) Login(context.Context, *UserLoginRequest) (*UserLoginResponse, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) Create ¶
func (UnimplementedUserServiceServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
func (UnimplementedUserServiceServer) Delete ¶
func (UnimplementedUserServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedUserServiceServer) List ¶
func (UnimplementedUserServiceServer) List(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedUserServiceServer) Ping ¶
func (UnimplementedUserServiceServer) Ping(context.Context, *PingRequest) (*PingResponse, error)
func (UnimplementedUserServiceServer) Retrieve ¶
func (UnimplementedUserServiceServer) Retrieve(context.Context, *RetrieveRequest) (*RetrieveResponse, error)
func (UnimplementedUserServiceServer) Update ¶
func (UnimplementedUserServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
type UnsafeUserAuthenServiceServer ¶
type UnsafeUserAuthenServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserAuthenServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserAuthenServiceServer will result in compilation errors.
type UnsafeUserServiceServer ¶
type UnsafeUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
type UpdateRequest ¶
type UpdateRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" validate:"required,gt=0"` Username *types.StringValue `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Password *types.StringValue `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Email *types.StringValue `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` Role Role `protobuf:"varint,5,opt,name=role,proto3,enum=user.v1.Role" json:"role,omitempty"` }
func (*UpdateRequest) Descriptor ¶
func (*UpdateRequest) Descriptor() ([]byte, []int)
func (*UpdateRequest) GetEmail ¶
func (m *UpdateRequest) GetEmail() *types.StringValue
func (*UpdateRequest) GetId ¶
func (m *UpdateRequest) GetId() uint64
func (*UpdateRequest) GetPassword ¶
func (m *UpdateRequest) GetPassword() *types.StringValue
func (*UpdateRequest) GetRole ¶
func (m *UpdateRequest) GetRole() Role
func (*UpdateRequest) GetUsername ¶
func (m *UpdateRequest) GetUsername() *types.StringValue
func (*UpdateRequest) GoString ¶
func (this *UpdateRequest) GoString() string
func (*UpdateRequest) Marshal ¶
func (m *UpdateRequest) Marshal() (dAtA []byte, err error)
func (*UpdateRequest) MarshalToSizedBuffer ¶
func (m *UpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) Reset ¶
func (m *UpdateRequest) Reset()
func (*UpdateRequest) Size ¶
func (m *UpdateRequest) Size() (n int)
func (*UpdateRequest) String ¶
func (this *UpdateRequest) String() string
func (*UpdateRequest) Unmarshal ¶
func (m *UpdateRequest) Unmarshal(dAtA []byte) error
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 { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,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"` Role Role `protobuf:"varint,4,opt,name=role,proto3,enum=user.v1.Role" json:"role,omitempty"` }
func (*UpdateResponse) Descriptor ¶
func (*UpdateResponse) Descriptor() ([]byte, []int)
func (*UpdateResponse) GetEmail ¶
func (m *UpdateResponse) GetEmail() string
func (*UpdateResponse) GetId ¶
func (m *UpdateResponse) GetId() uint64
func (*UpdateResponse) GetRole ¶
func (m *UpdateResponse) GetRole() Role
func (*UpdateResponse) GetUsername ¶
func (m *UpdateResponse) GetUsername() string
func (*UpdateResponse) GoString ¶
func (this *UpdateResponse) GoString() string
func (*UpdateResponse) Marshal ¶
func (m *UpdateResponse) Marshal() (dAtA []byte, err error)
func (*UpdateResponse) MarshalToSizedBuffer ¶
func (m *UpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) Reset ¶
func (m *UpdateResponse) Reset()
func (*UpdateResponse) Size ¶
func (m *UpdateResponse) Size() (n int)
func (*UpdateResponse) String ¶
func (this *UpdateResponse) String() string
func (*UpdateResponse) Unmarshal ¶
func (m *UpdateResponse) Unmarshal(dAtA []byte) error
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 UserAuthenServiceClient ¶
type UserAuthenServiceClient interface {
Login(ctx context.Context, in *UserLoginRequest, opts ...grpc.CallOption) (*UserLoginResponse, error)
}
UserAuthenServiceClient is the client API for UserAuthenService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewUserAuthenServiceClient ¶
func NewUserAuthenServiceClient(cc grpc.ClientConnInterface) UserAuthenServiceClient
type UserAuthenServiceServer ¶
type UserAuthenServiceServer interface {
Login(context.Context, *UserLoginRequest) (*UserLoginResponse, error)
}
UserAuthenServiceServer is the server API for UserAuthenService service. All implementations should embed UnimplementedUserAuthenServiceServer for forward compatibility
type UserList ¶
type UserList struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,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"` Role Role `protobuf:"varint,4,opt,name=role,proto3,enum=user.v1.Role" json:"role,omitempty"` }
func (*UserList) Descriptor ¶
func (*UserList) GetUsername ¶
func (*UserList) MarshalToSizedBuffer ¶
func (*UserList) ProtoMessage ¶
func (*UserList) ProtoMessage()
func (*UserList) XXX_DiscardUnknown ¶
func (m *UserList) XXX_DiscardUnknown()
func (*UserList) XXX_Marshal ¶
func (*UserList) XXX_Unmarshal ¶
type UserLoginRequest ¶
type UserLoginRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty" validate:"required"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty" validate:"required"` }
func (*UserLoginRequest) Descriptor ¶
func (*UserLoginRequest) Descriptor() ([]byte, []int)
func (*UserLoginRequest) GetPassword ¶
func (m *UserLoginRequest) GetPassword() string
func (*UserLoginRequest) GetUsername ¶
func (m *UserLoginRequest) GetUsername() string
func (*UserLoginRequest) GoString ¶
func (this *UserLoginRequest) GoString() string
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 (this *UserLoginRequest) String() string
func (*UserLoginRequest) Unmarshal ¶
func (m *UserLoginRequest) Unmarshal(dAtA []byte) error
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 UserLoginResponse ¶
type UserLoginResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,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"` Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` }
func (*UserLoginResponse) Descriptor ¶
func (*UserLoginResponse) Descriptor() ([]byte, []int)
func (*UserLoginResponse) GetEmail ¶
func (m *UserLoginResponse) GetEmail() string
func (*UserLoginResponse) GetId ¶
func (m *UserLoginResponse) GetId() uint64
func (*UserLoginResponse) GetRole ¶
func (m *UserLoginResponse) GetRole() string
func (*UserLoginResponse) GetUsername ¶
func (m *UserLoginResponse) GetUsername() string
func (*UserLoginResponse) GoString ¶
func (this *UserLoginResponse) GoString() string
func (*UserLoginResponse) Marshal ¶
func (m *UserLoginResponse) Marshal() (dAtA []byte, err error)
func (*UserLoginResponse) MarshalTo ¶
func (m *UserLoginResponse) MarshalTo(dAtA []byte) (int, error)
func (*UserLoginResponse) MarshalToSizedBuffer ¶
func (m *UserLoginResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UserLoginResponse) ProtoMessage ¶
func (*UserLoginResponse) ProtoMessage()
func (*UserLoginResponse) Reset ¶
func (m *UserLoginResponse) Reset()
func (*UserLoginResponse) Size ¶
func (m *UserLoginResponse) Size() (n int)
func (*UserLoginResponse) String ¶
func (this *UserLoginResponse) String() string
func (*UserLoginResponse) Unmarshal ¶
func (m *UserLoginResponse) Unmarshal(dAtA []byte) error
func (*UserLoginResponse) XXX_DiscardUnknown ¶
func (m *UserLoginResponse) XXX_DiscardUnknown()
func (*UserLoginResponse) XXX_Marshal ¶
func (m *UserLoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserLoginResponse) XXX_Merge ¶
func (m *UserLoginResponse) XXX_Merge(src proto.Message)
func (*UserLoginResponse) XXX_Size ¶
func (m *UserLoginResponse) XXX_Size() int
func (*UserLoginResponse) XXX_Unmarshal ¶
func (m *UserLoginResponse) XXX_Unmarshal(b []byte) error
type UserServiceClient ¶
type UserServiceClient interface { Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) Retrieve(ctx context.Context, in *RetrieveRequest, opts ...grpc.CallOption) (*RetrieveResponse, error) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) }
UserServiceClient is the client API for UserService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { Ping(context.Context, *PingRequest) (*PingResponse, error) Create(context.Context, *CreateRequest) (*CreateResponse, error) Retrieve(context.Context, *RetrieveRequest) (*RetrieveResponse, error) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) List(context.Context, *ListRequest) (*ListResponse, error) }
UserServiceServer is the server API for UserService service. All implementations should embed UnimplementedUserServiceServer for forward compatibility