Documentation ¶
Index ¶
- func HandleActivities(handler ActivityHandler) http.HandlerFunc
- func HandleActivity(handler ActivityHandler) http.HandlerFunc
- func HandleCreateActivity(handler ActivityHandler) http.HandlerFunc
- func HandleDeleteActivity(handler ActivityHandler) http.HandlerFunc
- func HandlePatchActivity(handler ActivityHandler) http.HandlerFunc
- func HandleUpdateActivity(handler ActivityHandler) http.HandlerFunc
- type ActivityHandler
- type Config
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleActivities ¶
func HandleActivities(handler ActivityHandler) http.HandlerFunc
func HandleActivity ¶
func HandleActivity(handler ActivityHandler) http.HandlerFunc
func HandleCreateActivity ¶
func HandleCreateActivity(handler ActivityHandler) http.HandlerFunc
func HandleDeleteActivity ¶
func HandleDeleteActivity(handler ActivityHandler) http.HandlerFunc
func HandlePatchActivity ¶
func HandlePatchActivity(handler ActivityHandler) http.HandlerFunc
func HandleUpdateActivity ¶
func HandleUpdateActivity(handler ActivityHandler) http.HandlerFunc
Types ¶
type ActivityHandler ¶
type ActivityHandler interface { Activities(ctx context.Context, req service.ActivitiesRequest) ([]service.Activity, error) Activity(ctx context.Context, id string) (*service.Activity, error) CreateActivity(ctx context.Context, activity service.Activity) error UpdateActivity(ctx context.Context, id string, activity service.Activity) error PatchActivity(ctx context.Context, id string, activity service.Activity) (*service.Activity, error) DeleteActivity(ctx context.Context, id string) (bool, error) }
Click to show internal directories.
Click to hide internal directories.