api

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateGroupEndpoint

func CreateGroupEndpoint(svc groups.Service) endpoint.Endpoint

func DecodeChangeGroupStatusRequest

func DecodeChangeGroupStatusRequest(_ context.Context, r *http.Request) (interface{}, error)

func DecodeGroupCreate

func DecodeGroupCreate(_ context.Context, r *http.Request) (interface{}, error)

func DecodeGroupRequest

func DecodeGroupRequest(_ context.Context, r *http.Request) (interface{}, error)

func DecodeGroupUpdate

func DecodeGroupUpdate(_ context.Context, r *http.Request) (interface{}, error)

func DecodeListGroupsRequest

func DecodeListGroupsRequest(_ context.Context, r *http.Request) (interface{}, error)

func DeleteGroupEndpoint

func DeleteGroupEndpoint(svc groups.Service) endpoint.Endpoint

func DisableGroupEndpoint

func DisableGroupEndpoint(svc groups.Service) endpoint.Endpoint

func EnableGroupEndpoint

func EnableGroupEndpoint(svc groups.Service) endpoint.Endpoint

func ListGroupsEndpoint

func ListGroupsEndpoint(svc groups.Service) endpoint.Endpoint

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.

func UpdateGroupEndpoint

func UpdateGroupEndpoint(svc groups.Service) endpoint.Endpoint

func ViewGroupEndpoint

func ViewGroupEndpoint(svc groups.Service) endpoint.Endpoint

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL