Documentation ¶
Overview ¶
Package proto is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- 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.Server, srv UserServiceServer)
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)
- func (m *CreateUserRequest) GetUser() *User
- func (*CreateUserRequest) ProtoMessage()
- func (m *CreateUserRequest) Reset()
- func (m *CreateUserRequest) String() string
- func (m *CreateUserRequest) XXX_DiscardUnknown()
- func (m *CreateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CreateUserRequest) XXX_Merge(src proto.Message)
- func (m *CreateUserRequest) XXX_Size() int
- func (m *CreateUserRequest) XXX_Unmarshal(b []byte) error
- type CreateUserResponse
- func (*CreateUserResponse) Descriptor() ([]byte, []int)
- func (m *CreateUserResponse) GetId() string
- func (*CreateUserResponse) ProtoMessage()
- func (m *CreateUserResponse) Reset()
- func (m *CreateUserResponse) String() string
- func (m *CreateUserResponse) XXX_DiscardUnknown()
- func (m *CreateUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CreateUserResponse) XXX_Merge(src proto.Message)
- func (m *CreateUserResponse) XXX_Size() int
- func (m *CreateUserResponse) XXX_Unmarshal(b []byte) error
- type DeleteUserRequest
- func (*DeleteUserRequest) Descriptor() ([]byte, []int)
- func (m *DeleteUserRequest) GetId() string
- func (*DeleteUserRequest) ProtoMessage()
- func (m *DeleteUserRequest) Reset()
- func (m *DeleteUserRequest) String() string
- func (m *DeleteUserRequest) XXX_DiscardUnknown()
- func (m *DeleteUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DeleteUserRequest) XXX_Merge(src proto.Message)
- func (m *DeleteUserRequest) XXX_Size() int
- func (m *DeleteUserRequest) XXX_Unmarshal(b []byte) error
- type DeleteUserResponse
- func (*DeleteUserResponse) Descriptor() ([]byte, []int)
- func (m *DeleteUserResponse) GetResult() string
- func (*DeleteUserResponse) ProtoMessage()
- func (m *DeleteUserResponse) Reset()
- func (m *DeleteUserResponse) String() string
- func (m *DeleteUserResponse) XXX_DiscardUnknown()
- func (m *DeleteUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DeleteUserResponse) XXX_Merge(src proto.Message)
- func (m *DeleteUserResponse) XXX_Size() int
- func (m *DeleteUserResponse) XXX_Unmarshal(b []byte) error
- type GetUserRequest
- func (*GetUserRequest) Descriptor() ([]byte, []int)
- func (m *GetUserRequest) GetId() string
- func (*GetUserRequest) ProtoMessage()
- func (m *GetUserRequest) Reset()
- func (m *GetUserRequest) String() string
- func (m *GetUserRequest) XXX_DiscardUnknown()
- func (m *GetUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetUserRequest) XXX_Merge(src proto.Message)
- func (m *GetUserRequest) XXX_Size() int
- func (m *GetUserRequest) XXX_Unmarshal(b []byte) error
- type GetUserResponse
- func (*GetUserResponse) Descriptor() ([]byte, []int)
- func (m *GetUserResponse) GetUser() *User
- func (*GetUserResponse) ProtoMessage()
- func (m *GetUserResponse) Reset()
- func (m *GetUserResponse) String() string
- func (m *GetUserResponse) XXX_DiscardUnknown()
- func (m *GetUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetUserResponse) XXX_Merge(src proto.Message)
- func (m *GetUserResponse) XXX_Size() int
- func (m *GetUserResponse) XXX_Unmarshal(b []byte) error
- type ListUserRequest
- func (*ListUserRequest) Descriptor() ([]byte, []int)
- func (*ListUserRequest) ProtoMessage()
- func (m *ListUserRequest) Reset()
- func (m *ListUserRequest) String() string
- func (m *ListUserRequest) XXX_DiscardUnknown()
- func (m *ListUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ListUserRequest) XXX_Merge(src proto.Message)
- func (m *ListUserRequest) XXX_Size() int
- func (m *ListUserRequest) XXX_Unmarshal(b []byte) error
- type ListUserResponse
- func (*ListUserResponse) Descriptor() ([]byte, []int)
- func (m *ListUserResponse) GetUser() []*User
- func (*ListUserResponse) ProtoMessage()
- func (m *ListUserResponse) Reset()
- func (m *ListUserResponse) String() string
- func (m *ListUserResponse) XXX_DiscardUnknown()
- func (m *ListUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ListUserResponse) XXX_Merge(src proto.Message)
- func (m *ListUserResponse) XXX_Size() int
- func (m *ListUserResponse) XXX_Unmarshal(b []byte) error
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)
- func (m *UpdateUserRequest) GetUser() *User
- func (*UpdateUserRequest) ProtoMessage()
- func (m *UpdateUserRequest) Reset()
- func (m *UpdateUserRequest) String() string
- func (m *UpdateUserRequest) XXX_DiscardUnknown()
- func (m *UpdateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UpdateUserRequest) XXX_Merge(src proto.Message)
- func (m *UpdateUserRequest) XXX_Size() int
- func (m *UpdateUserRequest) XXX_Unmarshal(b []byte) error
- type UpdateUserResponse
- func (*UpdateUserResponse) Descriptor() ([]byte, []int)
- func (m *UpdateUserResponse) GetResult() string
- func (*UpdateUserResponse) ProtoMessage()
- func (m *UpdateUserResponse) Reset()
- func (m *UpdateUserResponse) String() string
- func (m *UpdateUserResponse) XXX_DiscardUnknown()
- func (m *UpdateUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UpdateUserResponse) XXX_Merge(src proto.Message)
- func (m *UpdateUserResponse) XXX_Size() int
- func (m *UpdateUserResponse) XXX_Unmarshal(b []byte) error
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetCreatedAt() *timestamp.Timestamp
- func (m *User) GetId() string
- func (m *User) GetPassword() string
- func (m *User) GetState() uint32
- func (m *User) GetUpdatedAt() *timestamp.Timestamp
- func (m *User) GetUsername() string
- 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 (dst *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
- type UserServiceClient
- type UserServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
Types ¶
type CreateUserRequest ¶
type CreateUserRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateUserRequest) Descriptor ¶
func (*CreateUserRequest) Descriptor() ([]byte, []int)
func (*CreateUserRequest) GetUser ¶
func (m *CreateUserRequest) GetUser() *User
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) Reset ¶
func (m *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (m *CreateUserRequest) String() string
func (*CreateUserRequest) XXX_DiscardUnknown ¶
func (m *CreateUserRequest) XXX_DiscardUnknown()
func (*CreateUserRequest) XXX_Marshal ¶
func (m *CreateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateUserRequest) XXX_Merge ¶
func (dst *CreateUserRequest) XXX_Merge(src proto.Message)
func (*CreateUserRequest) XXX_Size ¶
func (m *CreateUserRequest) XXX_Size() int
func (*CreateUserRequest) XXX_Unmarshal ¶
func (m *CreateUserRequest) XXX_Unmarshal(b []byte) error
type CreateUserResponse ¶
type CreateUserResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateUserResponse) Descriptor ¶
func (*CreateUserResponse) Descriptor() ([]byte, []int)
func (*CreateUserResponse) GetId ¶
func (m *CreateUserResponse) GetId() string
func (*CreateUserResponse) ProtoMessage ¶
func (*CreateUserResponse) ProtoMessage()
func (*CreateUserResponse) Reset ¶
func (m *CreateUserResponse) Reset()
func (*CreateUserResponse) String ¶
func (m *CreateUserResponse) String() string
func (*CreateUserResponse) XXX_DiscardUnknown ¶
func (m *CreateUserResponse) XXX_DiscardUnknown()
func (*CreateUserResponse) XXX_Marshal ¶
func (m *CreateUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateUserResponse) XXX_Merge ¶
func (dst *CreateUserResponse) XXX_Merge(src proto.Message)
func (*CreateUserResponse) XXX_Size ¶
func (m *CreateUserResponse) XXX_Size() int
func (*CreateUserResponse) XXX_Unmarshal ¶
func (m *CreateUserResponse) XXX_Unmarshal(b []byte) error
type DeleteUserRequest ¶
type DeleteUserRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteUserRequest) Descriptor ¶
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
func (*DeleteUserRequest) GetId ¶
func (m *DeleteUserRequest) GetId() string
func (*DeleteUserRequest) ProtoMessage ¶
func (*DeleteUserRequest) ProtoMessage()
func (*DeleteUserRequest) Reset ¶
func (m *DeleteUserRequest) Reset()
func (*DeleteUserRequest) String ¶
func (m *DeleteUserRequest) String() string
func (*DeleteUserRequest) XXX_DiscardUnknown ¶
func (m *DeleteUserRequest) XXX_DiscardUnknown()
func (*DeleteUserRequest) XXX_Marshal ¶
func (m *DeleteUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteUserRequest) XXX_Merge ¶
func (dst *DeleteUserRequest) XXX_Merge(src proto.Message)
func (*DeleteUserRequest) XXX_Size ¶
func (m *DeleteUserRequest) XXX_Size() int
func (*DeleteUserRequest) XXX_Unmarshal ¶
func (m *DeleteUserRequest) XXX_Unmarshal(b []byte) error
type DeleteUserResponse ¶
type DeleteUserResponse struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteUserResponse) Descriptor ¶
func (*DeleteUserResponse) Descriptor() ([]byte, []int)
func (*DeleteUserResponse) GetResult ¶
func (m *DeleteUserResponse) GetResult() string
func (*DeleteUserResponse) ProtoMessage ¶
func (*DeleteUserResponse) ProtoMessage()
func (*DeleteUserResponse) Reset ¶
func (m *DeleteUserResponse) Reset()
func (*DeleteUserResponse) String ¶
func (m *DeleteUserResponse) String() string
func (*DeleteUserResponse) XXX_DiscardUnknown ¶
func (m *DeleteUserResponse) XXX_DiscardUnknown()
func (*DeleteUserResponse) XXX_Marshal ¶
func (m *DeleteUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteUserResponse) XXX_Merge ¶
func (dst *DeleteUserResponse) XXX_Merge(src proto.Message)
func (*DeleteUserResponse) XXX_Size ¶
func (m *DeleteUserResponse) XXX_Size() int
func (*DeleteUserResponse) XXX_Unmarshal ¶
func (m *DeleteUserResponse) XXX_Unmarshal(b []byte) error
type GetUserRequest ¶
type GetUserRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetUserRequest) Descriptor ¶
func (*GetUserRequest) Descriptor() ([]byte, []int)
func (*GetUserRequest) GetId ¶
func (m *GetUserRequest) GetId() string
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) Reset ¶
func (m *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (m *GetUserRequest) String() string
func (*GetUserRequest) XXX_DiscardUnknown ¶
func (m *GetUserRequest) XXX_DiscardUnknown()
func (*GetUserRequest) XXX_Marshal ¶
func (m *GetUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetUserRequest) XXX_Merge ¶
func (dst *GetUserRequest) XXX_Merge(src proto.Message)
func (*GetUserRequest) XXX_Size ¶
func (m *GetUserRequest) XXX_Size() int
func (*GetUserRequest) XXX_Unmarshal ¶
func (m *GetUserRequest) XXX_Unmarshal(b []byte) error
type GetUserResponse ¶
type GetUserResponse struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetUserResponse) Descriptor ¶
func (*GetUserResponse) Descriptor() ([]byte, []int)
func (*GetUserResponse) GetUser ¶
func (m *GetUserResponse) GetUser() *User
func (*GetUserResponse) ProtoMessage ¶
func (*GetUserResponse) ProtoMessage()
func (*GetUserResponse) Reset ¶
func (m *GetUserResponse) Reset()
func (*GetUserResponse) String ¶
func (m *GetUserResponse) String() string
func (*GetUserResponse) XXX_DiscardUnknown ¶
func (m *GetUserResponse) XXX_DiscardUnknown()
func (*GetUserResponse) XXX_Marshal ¶
func (m *GetUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetUserResponse) XXX_Merge ¶
func (dst *GetUserResponse) XXX_Merge(src proto.Message)
func (*GetUserResponse) XXX_Size ¶
func (m *GetUserResponse) XXX_Size() int
func (*GetUserResponse) XXX_Unmarshal ¶
func (m *GetUserResponse) XXX_Unmarshal(b []byte) error
type ListUserRequest ¶
type ListUserRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListUserRequest) Descriptor ¶
func (*ListUserRequest) Descriptor() ([]byte, []int)
func (*ListUserRequest) ProtoMessage ¶
func (*ListUserRequest) ProtoMessage()
func (*ListUserRequest) Reset ¶
func (m *ListUserRequest) Reset()
func (*ListUserRequest) String ¶
func (m *ListUserRequest) String() string
func (*ListUserRequest) XXX_DiscardUnknown ¶
func (m *ListUserRequest) XXX_DiscardUnknown()
func (*ListUserRequest) XXX_Marshal ¶
func (m *ListUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListUserRequest) XXX_Merge ¶
func (dst *ListUserRequest) XXX_Merge(src proto.Message)
func (*ListUserRequest) XXX_Size ¶
func (m *ListUserRequest) XXX_Size() int
func (*ListUserRequest) XXX_Unmarshal ¶
func (m *ListUserRequest) XXX_Unmarshal(b []byte) error
type ListUserResponse ¶
type ListUserResponse struct { User []*User `protobuf:"bytes,1,rep,name=user,proto3" json:"user,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListUserResponse) Descriptor ¶
func (*ListUserResponse) Descriptor() ([]byte, []int)
func (*ListUserResponse) GetUser ¶
func (m *ListUserResponse) GetUser() []*User
func (*ListUserResponse) ProtoMessage ¶
func (*ListUserResponse) ProtoMessage()
func (*ListUserResponse) Reset ¶
func (m *ListUserResponse) Reset()
func (*ListUserResponse) String ¶
func (m *ListUserResponse) String() string
func (*ListUserResponse) XXX_DiscardUnknown ¶
func (m *ListUserResponse) XXX_DiscardUnknown()
func (*ListUserResponse) XXX_Marshal ¶
func (m *ListUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListUserResponse) XXX_Merge ¶
func (dst *ListUserResponse) XXX_Merge(src proto.Message)
func (*ListUserResponse) XXX_Size ¶
func (m *ListUserResponse) XXX_Size() int
func (*ListUserResponse) XXX_Unmarshal ¶
func (m *ListUserResponse) XXX_Unmarshal(b []byte) error
type UpdateUserRequest ¶
type UpdateUserRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateUserRequest) Descriptor ¶
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
func (*UpdateUserRequest) GetUser ¶
func (m *UpdateUserRequest) GetUser() *User
func (*UpdateUserRequest) ProtoMessage ¶
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) Reset ¶
func (m *UpdateUserRequest) Reset()
func (*UpdateUserRequest) String ¶
func (m *UpdateUserRequest) String() string
func (*UpdateUserRequest) XXX_DiscardUnknown ¶
func (m *UpdateUserRequest) XXX_DiscardUnknown()
func (*UpdateUserRequest) XXX_Marshal ¶
func (m *UpdateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateUserRequest) XXX_Merge ¶
func (dst *UpdateUserRequest) XXX_Merge(src proto.Message)
func (*UpdateUserRequest) XXX_Size ¶
func (m *UpdateUserRequest) XXX_Size() int
func (*UpdateUserRequest) XXX_Unmarshal ¶
func (m *UpdateUserRequest) XXX_Unmarshal(b []byte) error
type UpdateUserResponse ¶
type UpdateUserResponse struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateUserResponse) Descriptor ¶
func (*UpdateUserResponse) Descriptor() ([]byte, []int)
func (*UpdateUserResponse) GetResult ¶
func (m *UpdateUserResponse) GetResult() string
func (*UpdateUserResponse) ProtoMessage ¶
func (*UpdateUserResponse) ProtoMessage()
func (*UpdateUserResponse) Reset ¶
func (m *UpdateUserResponse) Reset()
func (*UpdateUserResponse) String ¶
func (m *UpdateUserResponse) String() string
func (*UpdateUserResponse) XXX_DiscardUnknown ¶
func (m *UpdateUserResponse) XXX_DiscardUnknown()
func (*UpdateUserResponse) XXX_Marshal ¶
func (m *UpdateUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateUserResponse) XXX_Merge ¶
func (dst *UpdateUserResponse) XXX_Merge(src proto.Message)
func (*UpdateUserResponse) XXX_Size ¶
func (m *UpdateUserResponse) XXX_Size() int
func (*UpdateUserResponse) XXX_Unmarshal ¶
func (m *UpdateUserResponse) XXX_Unmarshal(b []byte) error
type User ¶
type User struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` State uint32 `protobuf:"varint,4,opt,name=state,proto3" json:"state,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*User) Descriptor ¶
func (*User) GetCreatedAt ¶
func (*User) GetPassword ¶
func (*User) GetUpdatedAt ¶
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Unmarshal ¶
type UserServiceClient ¶
type UserServiceClient interface { List(ctx context.Context, in *ListUserRequest, opts ...grpc.CallOption) (*ListUserResponse, error) Get(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) Create(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error) Update(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error) Delete(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, 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
type UserServiceServer ¶
type UserServiceServer interface { List(context.Context, *ListUserRequest) (*ListUserResponse, error) Get(context.Context, *GetUserRequest) (*GetUserResponse, error) Create(context.Context, *CreateUserRequest) (*CreateUserResponse, error) Update(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error) Delete(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error) }
UserServiceServer is the server API for UserService service.