Documentation ¶
Index ¶
- type Mod
- func (e *Mod) CreateComment(ctx context.Context, req *protobuffer.CreateCommentRequest) (*protobuffer.CreateCommentResponse, error)
- func (e *Mod) DeleteComment(ctx context.Context, req *protobuffer.DeleteCommentRequest) (*protobuffer.DeleteCommentResponse, error)
- func (e *Mod) GetCommentByModID(ctx context.Context, req *protobuffer.GetCommentByModIDRequest) (*protobuffer.GetCommentByModIDResponse, error)
- func (e *Mod) UpdateComment(ctx context.Context, req *protobuffer.UpdateCommentRequest) (*protobuffer.UpdateCommentResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mod ¶
type Mod struct { protobuffer.UnimplementedCommentServiceServer // contains filtered or unexported fields }
func New ¶
func New(postgres repository.ModRepository, logger logrus.Logger) *Mod
Return a new handler
func (*Mod) CreateComment ¶
func (e *Mod) CreateComment(ctx context.Context, req *protobuffer.CreateCommentRequest) (*protobuffer.CreateCommentResponse, error)
func (*Mod) DeleteComment ¶
func (e *Mod) DeleteComment(ctx context.Context, req *protobuffer.DeleteCommentRequest) (*protobuffer.DeleteCommentResponse, error)
func (*Mod) GetCommentByModID ¶
func (e *Mod) GetCommentByModID(ctx context.Context, req *protobuffer.GetCommentByModIDRequest) (*protobuffer.GetCommentByModIDResponse, error)
func (*Mod) UpdateComment ¶
func (e *Mod) UpdateComment(ctx context.Context, req *protobuffer.UpdateCommentRequest) (*protobuffer.UpdateCommentResponse, error)
Click to show internal directories.
Click to hide internal directories.