Documentation ¶
Overview ¶
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations.
Index ¶
- func CreateGroupEndpoint(svc groups.Service) endpoint.Endpoint
- func DecodeChangeGroupStatusRequest(_ context.Context, r *http.Request) (interface{}, error)
- func DecodeGroupCreate(_ context.Context, r *http.Request) (interface{}, error)
- func DecodeGroupRequest(_ context.Context, r *http.Request) (interface{}, error)
- func DecodeGroupUpdate(_ context.Context, r *http.Request) (interface{}, error)
- func DecodeListGroupsRequest(_ context.Context, r *http.Request) (interface{}, error)
- func DeleteGroupEndpoint(svc groups.Service) endpoint.Endpoint
- func DisableGroupEndpoint(svc groups.Service) endpoint.Endpoint
- func EnableGroupEndpoint(svc groups.Service) endpoint.Endpoint
- func ListGroupsEndpoint(svc groups.Service) endpoint.Endpoint
- func MakeHandler(svc groups.Service, authn authn.Authentication, mux *chi.Mux, ...) *chi.Mux
- func UpdateGroupEndpoint(svc groups.Service) endpoint.Endpoint
- func ViewGroupEndpoint(svc groups.Service) endpoint.Endpoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeGroupCreate ¶
func DecodeGroupRequest ¶
func DecodeGroupUpdate ¶
func DecodeListGroupsRequest ¶
func MakeHandler ¶
func MakeHandler(svc groups.Service, authn authn.Authentication, mux *chi.Mux, logger *slog.Logger, instanceID string) *chi.Mux
MakeHandler returns a HTTP handler for Groups API endpoints.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.