Documentation ¶
Overview ¶
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations.
Index ¶
- func AssignMembersEndpoint(svc groups.Service, relation, memberKind string) endpoint.Endpoint
- func CreateGroupEndpoint(svc groups.Service, kind string) endpoint.Endpoint
- func DecodeAssignMembersRequest(_ context.Context, r *http.Request) (interface{}, error)
- func DecodeChangeGroupStatus(_ context.Context, r *http.Request) (interface{}, error)
- func DecodeGroupCreate(_ context.Context, r *http.Request) (interface{}, error)
- func DecodeGroupPermsRequest(_ 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 DecodeListChildrenRequest(_ context.Context, r *http.Request) (interface{}, error)
- func DecodeListGroupsRequest(_ context.Context, r *http.Request) (interface{}, error)
- func DecodeListMembersRequest(_ context.Context, r *http.Request) (interface{}, error)
- func DecodeListParentsRequest(_ context.Context, r *http.Request) (interface{}, error)
- func DecodeUnassignMembersRequest(_ 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, memberKind string) endpoint.Endpoint
- func ListMembersEndpoint(svc groups.Service, memberKind string) endpoint.Endpoint
- func LoggingMiddleware(svc groups.Service, logger *slog.Logger) groups.Service
- func MetricsMiddleware(svc groups.Service, counter metrics.Counter, latency metrics.Histogram) groups.Service
- func UnassignMembersEndpoint(svc groups.Service, relation, memberKind string) endpoint.Endpoint
- func UpdateGroupEndpoint(svc groups.Service) endpoint.Endpoint
- func ViewGroupEndpoint(svc groups.Service) endpoint.Endpoint
- func ViewGroupPermsEndpoint(svc groups.Service) endpoint.Endpoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssignMembersEndpoint ¶
func CreateGroupEndpoint ¶
func DecodeChangeGroupStatus ¶
func DecodeGroupCreate ¶
func DecodeGroupPermsRequest ¶
func DecodeGroupRequest ¶
func DecodeGroupUpdate ¶
func DecodeListGroupsRequest ¶
func ListGroupsEndpoint ¶
func ListMembersEndpoint ¶
func LoggingMiddleware ¶
LoggingMiddleware adds logging facilities to the groups service.
func MetricsMiddleware ¶
func MetricsMiddleware(svc groups.Service, counter metrics.Counter, latency metrics.Histogram) groups.Service
MetricsMiddleware instruments policies service by tracking request count and latency.
func UnassignMembersEndpoint ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.