Documentation ¶
Index ¶
- Variables
- func NewUserManagerHandler(srv UserManagerServer) http.Handler
- func RegisterUserManagerServer(s grpc.ServiceRegistrar, srv UserManagerServer)
- type Comment
- type CreateCommentInput
- func (*CreateCommentInput) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCommentInput) GetComment() *Comment
- func (x *CreateCommentInput) GetUserId() string
- func (*CreateCommentInput) ProtoMessage()
- func (x *CreateCommentInput) ProtoReflect() protoreflect.Message
- func (x *CreateCommentInput) Reset()
- func (x *CreateCommentInput) String() string
- type CreateCommentOutput
- func (*CreateCommentOutput) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCommentOutput) GetCommentId() string
- func (*CreateCommentOutput) ProtoMessage()
- func (x *CreateCommentOutput) ProtoReflect() protoreflect.Message
- func (x *CreateCommentOutput) Reset()
- func (x *CreateCommentOutput) String() string
- type CreateUserInput
- func (*CreateUserInput) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserInput) GetEmail() string
- func (x *CreateUserInput) GetUsername() string
- func (*CreateUserInput) ProtoMessage()
- func (x *CreateUserInput) ProtoReflect() protoreflect.Message
- func (x *CreateUserInput) Reset()
- func (x *CreateUserInput) String() string
- type CreateUserOutput
- type DeleteUserInput
- type DeleteUserOutput
- type GetCommentsInput
- func (*GetCommentsInput) Descriptor() ([]byte, []int)deprecated
- func (x *GetCommentsInput) GetLocales() []string
- func (x *GetCommentsInput) GetOffset() int32
- func (x *GetCommentsInput) GetOrder() string
- func (x *GetCommentsInput) GetSize() int32
- func (x *GetCommentsInput) GetSort() string
- func (x *GetCommentsInput) GetUserId() string
- func (*GetCommentsInput) ProtoMessage()
- func (x *GetCommentsInput) ProtoReflect() protoreflect.Message
- func (x *GetCommentsInput) Reset()
- func (x *GetCommentsInput) String() string
- type GetCommentsOutput
- func (*GetCommentsOutput) Descriptor() ([]byte, []int)deprecated
- func (x *GetCommentsOutput) GetComments() []*Comment
- func (*GetCommentsOutput) ProtoMessage()
- func (x *GetCommentsOutput) ProtoReflect() protoreflect.Message
- func (x *GetCommentsOutput) Reset()
- func (x *GetCommentsOutput) String() string
- type UnimplementedUserManagerServer
- func (UnimplementedUserManagerServer) CreateComment(context.Context, *CreateCommentInput) (*CreateCommentOutput, error)
- func (UnimplementedUserManagerServer) CreateUser(context.Context, *CreateUserInput) (*CreateUserOutput, error)
- func (UnimplementedUserManagerServer) DeleteUser(context.Context, *DeleteUserInput) (*DeleteUserOutput, error)
- func (UnimplementedUserManagerServer) GetComments(context.Context, *GetCommentsInput) (*GetCommentsOutput, error)
- type UnsafeUserManagerServer
- type UserManagerClient
- type UserManagerServer
Constants ¶
This section is empty.
Variables ¶
var File_user_manager_proto protoreflect.FileDescriptor
Functions ¶
func NewUserManagerHandler ¶
func NewUserManagerHandler(srv UserManagerServer) http.Handler
NewUserManagerHandler constructs new http.Handler for UserManagerServer
func RegisterUserManagerServer ¶
func RegisterUserManagerServer(s grpc.ServiceRegistrar, srv UserManagerServer)
Types ¶
type Comment ¶
type Comment struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*Comment) Descriptor
deprecated
func (*Comment) GetContent ¶
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
func (*Comment) ProtoReflect ¶
func (x *Comment) ProtoReflect() protoreflect.Message
type CreateCommentInput ¶
type CreateCommentInput struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Comment *Comment `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*CreateCommentInput) Descriptor
deprecated
func (*CreateCommentInput) Descriptor() ([]byte, []int)
Deprecated: Use CreateCommentInput.ProtoReflect.Descriptor instead.
func (*CreateCommentInput) GetComment ¶
func (x *CreateCommentInput) GetComment() *Comment
func (*CreateCommentInput) GetUserId ¶
func (x *CreateCommentInput) GetUserId() string
func (*CreateCommentInput) ProtoMessage ¶
func (*CreateCommentInput) ProtoMessage()
func (*CreateCommentInput) ProtoReflect ¶
func (x *CreateCommentInput) ProtoReflect() protoreflect.Message
func (*CreateCommentInput) Reset ¶
func (x *CreateCommentInput) Reset()
func (*CreateCommentInput) String ¶
func (x *CreateCommentInput) String() string
type CreateCommentOutput ¶
type CreateCommentOutput struct { CommentId string `protobuf:"bytes,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` // contains filtered or unexported fields }
func (*CreateCommentOutput) Descriptor
deprecated
func (*CreateCommentOutput) Descriptor() ([]byte, []int)
Deprecated: Use CreateCommentOutput.ProtoReflect.Descriptor instead.
func (*CreateCommentOutput) GetCommentId ¶
func (x *CreateCommentOutput) GetCommentId() string
func (*CreateCommentOutput) ProtoMessage ¶
func (*CreateCommentOutput) ProtoMessage()
func (*CreateCommentOutput) ProtoReflect ¶
func (x *CreateCommentOutput) ProtoReflect() protoreflect.Message
func (*CreateCommentOutput) Reset ¶
func (x *CreateCommentOutput) Reset()
func (*CreateCommentOutput) String ¶
func (x *CreateCommentOutput) String() string
type CreateUserInput ¶
type CreateUserInput 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"` // contains filtered or unexported fields }
func (*CreateUserInput) Descriptor
deprecated
func (*CreateUserInput) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserInput.ProtoReflect.Descriptor instead.
func (*CreateUserInput) GetEmail ¶
func (x *CreateUserInput) GetEmail() string
func (*CreateUserInput) GetUsername ¶
func (x *CreateUserInput) GetUsername() string
func (*CreateUserInput) ProtoMessage ¶
func (*CreateUserInput) ProtoMessage()
func (*CreateUserInput) ProtoReflect ¶
func (x *CreateUserInput) ProtoReflect() protoreflect.Message
func (*CreateUserInput) Reset ¶
func (x *CreateUserInput) Reset()
func (*CreateUserInput) String ¶
func (x *CreateUserInput) String() string
type CreateUserOutput ¶
type CreateUserOutput struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateUserOutput) Descriptor
deprecated
func (*CreateUserOutput) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserOutput.ProtoReflect.Descriptor instead.
func (*CreateUserOutput) GetId ¶
func (x *CreateUserOutput) GetId() string
func (*CreateUserOutput) ProtoMessage ¶
func (*CreateUserOutput) ProtoMessage()
func (*CreateUserOutput) ProtoReflect ¶
func (x *CreateUserOutput) ProtoReflect() protoreflect.Message
func (*CreateUserOutput) Reset ¶
func (x *CreateUserOutput) Reset()
func (*CreateUserOutput) String ¶
func (x *CreateUserOutput) String() string
type DeleteUserInput ¶
type DeleteUserInput struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteUserInput) Descriptor
deprecated
func (*DeleteUserInput) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserInput.ProtoReflect.Descriptor instead.
func (*DeleteUserInput) GetUserId ¶
func (x *DeleteUserInput) GetUserId() string
func (*DeleteUserInput) ProtoMessage ¶
func (*DeleteUserInput) ProtoMessage()
func (*DeleteUserInput) ProtoReflect ¶
func (x *DeleteUserInput) ProtoReflect() protoreflect.Message
func (*DeleteUserInput) Reset ¶
func (x *DeleteUserInput) Reset()
func (*DeleteUserInput) String ¶
func (x *DeleteUserInput) String() string
type DeleteUserOutput ¶
type DeleteUserOutput struct {
// contains filtered or unexported fields
}
func (*DeleteUserOutput) Descriptor
deprecated
func (*DeleteUserOutput) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserOutput.ProtoReflect.Descriptor instead.
func (*DeleteUserOutput) ProtoMessage ¶
func (*DeleteUserOutput) ProtoMessage()
func (*DeleteUserOutput) ProtoReflect ¶
func (x *DeleteUserOutput) ProtoReflect() protoreflect.Message
func (*DeleteUserOutput) Reset ¶
func (x *DeleteUserOutput) Reset()
func (*DeleteUserOutput) String ¶
func (x *DeleteUserOutput) String() string
type GetCommentsInput ¶
type GetCommentsInput struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Offset int32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` Size int32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` Sort string `protobuf:"bytes,4,opt,name=sort,proto3" json:"sort,omitempty"` Order string `protobuf:"bytes,5,opt,name=order,proto3" json:"order,omitempty"` Locales []string `protobuf:"bytes,6,rep,name=locales,proto3" json:"locales,omitempty"` // contains filtered or unexported fields }
func (*GetCommentsInput) Descriptor
deprecated
func (*GetCommentsInput) Descriptor() ([]byte, []int)
Deprecated: Use GetCommentsInput.ProtoReflect.Descriptor instead.
func (*GetCommentsInput) GetLocales ¶
func (x *GetCommentsInput) GetLocales() []string
func (*GetCommentsInput) GetOffset ¶
func (x *GetCommentsInput) GetOffset() int32
func (*GetCommentsInput) GetOrder ¶
func (x *GetCommentsInput) GetOrder() string
func (*GetCommentsInput) GetSize ¶
func (x *GetCommentsInput) GetSize() int32
func (*GetCommentsInput) GetSort ¶
func (x *GetCommentsInput) GetSort() string
func (*GetCommentsInput) GetUserId ¶
func (x *GetCommentsInput) GetUserId() string
func (*GetCommentsInput) ProtoMessage ¶
func (*GetCommentsInput) ProtoMessage()
func (*GetCommentsInput) ProtoReflect ¶
func (x *GetCommentsInput) ProtoReflect() protoreflect.Message
func (*GetCommentsInput) Reset ¶
func (x *GetCommentsInput) Reset()
func (*GetCommentsInput) String ¶
func (x *GetCommentsInput) String() string
type GetCommentsOutput ¶
type GetCommentsOutput struct { Comments []*Comment `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"` // contains filtered or unexported fields }
func (*GetCommentsOutput) Descriptor
deprecated
func (*GetCommentsOutput) Descriptor() ([]byte, []int)
Deprecated: Use GetCommentsOutput.ProtoReflect.Descriptor instead.
func (*GetCommentsOutput) GetComments ¶
func (x *GetCommentsOutput) GetComments() []*Comment
func (*GetCommentsOutput) ProtoMessage ¶
func (*GetCommentsOutput) ProtoMessage()
func (*GetCommentsOutput) ProtoReflect ¶
func (x *GetCommentsOutput) ProtoReflect() protoreflect.Message
func (*GetCommentsOutput) Reset ¶
func (x *GetCommentsOutput) Reset()
func (*GetCommentsOutput) String ¶
func (x *GetCommentsOutput) String() string
type UnimplementedUserManagerServer ¶
type UnimplementedUserManagerServer struct { }
UnimplementedUserManagerServer must be embedded to have forward compatible implementations.
func (UnimplementedUserManagerServer) CreateComment ¶
func (UnimplementedUserManagerServer) CreateComment(context.Context, *CreateCommentInput) (*CreateCommentOutput, error)
func (UnimplementedUserManagerServer) CreateUser ¶
func (UnimplementedUserManagerServer) CreateUser(context.Context, *CreateUserInput) (*CreateUserOutput, error)
func (UnimplementedUserManagerServer) DeleteUser ¶
func (UnimplementedUserManagerServer) DeleteUser(context.Context, *DeleteUserInput) (*DeleteUserOutput, error)
func (UnimplementedUserManagerServer) GetComments ¶
func (UnimplementedUserManagerServer) GetComments(context.Context, *GetCommentsInput) (*GetCommentsOutput, error)
type UnsafeUserManagerServer ¶
type UnsafeUserManagerServer interface {
// contains filtered or unexported methods
}
UnsafeUserManagerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserManagerServer will result in compilation errors.
type UserManagerClient ¶
type UserManagerClient interface { CreateUser(ctx context.Context, in *CreateUserInput, opts ...grpc.CallOption) (*CreateUserOutput, error) DeleteUser(ctx context.Context, in *DeleteUserInput, opts ...grpc.CallOption) (*DeleteUserOutput, error) GetComments(ctx context.Context, in *GetCommentsInput, opts ...grpc.CallOption) (*GetCommentsOutput, error) CreateComment(ctx context.Context, in *CreateCommentInput, opts ...grpc.CallOption) (*CreateCommentOutput, error) }
UserManagerClient is the client API for UserManager 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 NewUserManagerClient ¶
func NewUserManagerClient(cc grpc.ClientConnInterface) UserManagerClient
type UserManagerServer ¶
type UserManagerServer interface { CreateUser(context.Context, *CreateUserInput) (*CreateUserOutput, error) DeleteUser(context.Context, *DeleteUserInput) (*DeleteUserOutput, error) GetComments(context.Context, *GetCommentsInput) (*GetCommentsOutput, error) CreateComment(context.Context, *CreateCommentInput) (*CreateCommentOutput, error) // contains filtered or unexported methods }
UserManagerServer is the server API for UserManager service. All implementations must embed UnimplementedUserManagerServer for forward compatibility