handlers

package
v0.0.0-...-7687a33 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventTypes

type EventTypes struct {
	List func(http.ResponseWriter, *http.Request)
}

HTTP API interface

func NewEventTypes

func NewEventTypes(h EventTypesAPI) *EventTypes

func (EventTypes) MountRoutes

func (h EventTypes) MountRoutes(r chi.Router, middlewares ...func(http.Handler) http.Handler)

type EventTypesAPI

type EventTypesAPI interface {
	List(context.Context, *request.EventTypesList) (interface{}, error)
}

Internal API interface

type Function

type Function struct {
	List func(http.ResponseWriter, *http.Request)
}

HTTP API interface

func NewFunction

func NewFunction(h FunctionAPI) *Function

func (Function) MountRoutes

func (h Function) MountRoutes(r chi.Router, middlewares ...func(http.Handler) http.Handler)

type FunctionAPI

type FunctionAPI interface {
	List(context.Context, *request.FunctionList) (interface{}, error)
}

Internal API interface

type Permissions

type Permissions struct {
	List      func(http.ResponseWriter, *http.Request)
	Effective func(http.ResponseWriter, *http.Request)
	Trace     func(http.ResponseWriter, *http.Request)
	Read      func(http.ResponseWriter, *http.Request)
	Delete    func(http.ResponseWriter, *http.Request)
	Update    func(http.ResponseWriter, *http.Request)
}

HTTP API interface

func NewPermissions

func NewPermissions(h PermissionsAPI) *Permissions

func (Permissions) MountRoutes

func (h Permissions) MountRoutes(r chi.Router, middlewares ...func(http.Handler) http.Handler)

type PermissionsAPI

type PermissionsAPI interface {
	List(context.Context, *request.PermissionsList) (interface{}, error)
	Effective(context.Context, *request.PermissionsEffective) (interface{}, error)
	Trace(context.Context, *request.PermissionsTrace) (interface{}, error)
	Read(context.Context, *request.PermissionsRead) (interface{}, error)
	Delete(context.Context, *request.PermissionsDelete) (interface{}, error)
	Update(context.Context, *request.PermissionsUpdate) (interface{}, error)
}

Internal API interface

type Session

type Session struct {
	List        func(http.ResponseWriter, *http.Request)
	Read        func(http.ResponseWriter, *http.Request)
	Cancel      func(http.ResponseWriter, *http.Request)
	ListPrompts func(http.ResponseWriter, *http.Request)
	ResumeState func(http.ResponseWriter, *http.Request)
}

HTTP API interface

func NewSession

func NewSession(h SessionAPI) *Session

func (Session) MountRoutes

func (h Session) MountRoutes(r chi.Router, middlewares ...func(http.Handler) http.Handler)

type SessionAPI

type SessionAPI interface {
	List(context.Context, *request.SessionList) (interface{}, error)
	Read(context.Context, *request.SessionRead) (interface{}, error)
	Cancel(context.Context, *request.SessionCancel) (interface{}, error)
	ListPrompts(context.Context, *request.SessionListPrompts) (interface{}, error)
	ResumeState(context.Context, *request.SessionResumeState) (interface{}, error)
}

Internal API interface

type Trigger

type Trigger struct {
	List     func(http.ResponseWriter, *http.Request)
	Create   func(http.ResponseWriter, *http.Request)
	Update   func(http.ResponseWriter, *http.Request)
	Read     func(http.ResponseWriter, *http.Request)
	Delete   func(http.ResponseWriter, *http.Request)
	Undelete func(http.ResponseWriter, *http.Request)
}

HTTP API interface

func NewTrigger

func NewTrigger(h TriggerAPI) *Trigger

func (Trigger) MountRoutes

func (h Trigger) MountRoutes(r chi.Router, middlewares ...func(http.Handler) http.Handler)

type TriggerAPI

type TriggerAPI interface {
	List(context.Context, *request.TriggerList) (interface{}, error)
	Create(context.Context, *request.TriggerCreate) (interface{}, error)
	Update(context.Context, *request.TriggerUpdate) (interface{}, error)
	Read(context.Context, *request.TriggerRead) (interface{}, error)
	Delete(context.Context, *request.TriggerDelete) (interface{}, error)
	Undelete(context.Context, *request.TriggerUndelete) (interface{}, error)
}

Internal API interface

type Type

type Type struct {
	List func(http.ResponseWriter, *http.Request)
}

HTTP API interface

func NewType

func NewType(h TypeAPI) *Type

func (Type) MountRoutes

func (h Type) MountRoutes(r chi.Router, middlewares ...func(http.Handler) http.Handler)

type TypeAPI

type TypeAPI interface {
	List(context.Context, *request.TypeList) (interface{}, error)
}

Internal API interface

type Workflow

type Workflow struct {
	List     func(http.ResponseWriter, *http.Request)
	Create   func(http.ResponseWriter, *http.Request)
	Update   func(http.ResponseWriter, *http.Request)
	Read     func(http.ResponseWriter, *http.Request)
	Delete   func(http.ResponseWriter, *http.Request)
	Undelete func(http.ResponseWriter, *http.Request)
	Test     func(http.ResponseWriter, *http.Request)
	Exec     func(http.ResponseWriter, *http.Request)
}

HTTP API interface

func NewWorkflow

func NewWorkflow(h WorkflowAPI) *Workflow

func (Workflow) MountRoutes

func (h Workflow) MountRoutes(r chi.Router, middlewares ...func(http.Handler) http.Handler)

type WorkflowAPI

type WorkflowAPI interface {
	List(context.Context, *request.WorkflowList) (interface{}, error)
	Create(context.Context, *request.WorkflowCreate) (interface{}, error)
	Update(context.Context, *request.WorkflowUpdate) (interface{}, error)
	Read(context.Context, *request.WorkflowRead) (interface{}, error)
	Delete(context.Context, *request.WorkflowDelete) (interface{}, error)
	Undelete(context.Context, *request.WorkflowUndelete) (interface{}, error)
	Test(context.Context, *request.WorkflowTest) (interface{}, error)
	Exec(context.Context, *request.WorkflowExec) (interface{}, error)
}

Internal API interface

Jump to

Keyboard shortcuts

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