Documentation ¶
Index ¶
- type Handler
- func (h *Handler) GetByFilter(ctx context.Context, request *proto.GetPostByFilterRequest) (*proto.PostsResponse, error)
- func (h *Handler) GetByID(ctx context.Context, request *proto.GetPostByIDRequest) (*proto.PostResponse, error)
- func (h *Handler) GetBySlug(ctx context.Context, request *proto.GetPostBySlugRequest) (*proto.PostResponse, error)
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { PostService service.PostService LanguageService service.LanguageService URLBuilder url_builder.Helper }
func (*Handler) GetByFilter ¶
func (h *Handler) GetByFilter(ctx context.Context, request *proto.GetPostByFilterRequest) (*proto.PostsResponse, error)
func (*Handler) GetByID ¶
func (h *Handler) GetByID(ctx context.Context, request *proto.GetPostByIDRequest) (*proto.PostResponse, error)
func (*Handler) GetBySlug ¶
func (h *Handler) GetBySlug(ctx context.Context, request *proto.GetPostBySlugRequest) (*proto.PostResponse, error)
type Params ¶
type Params struct { fx.In LanguageService service.LanguageService PostService service.PostService }
Click to show internal directories.
Click to hide internal directories.