handlers

package
v0.0.0-...-06831c0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 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 Actionlog

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

HTTP API interface

func NewActionlog

func NewActionlog(h ActionlogAPI) *Actionlog

func (Actionlog) MountRoutes

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

type ActionlogAPI

type ActionlogAPI interface {
	List(context.Context, *request.ActionlogList) (interface{}, error)
}

Internal API interface

type ApigwFilter

type ApigwFilter 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)
	DefFilter    func(http.ResponseWriter, *http.Request)
	DefProxyAuth func(http.ResponseWriter, *http.Request)
}

HTTP API interface

func NewApigwFilter

func NewApigwFilter(h ApigwFilterAPI) *ApigwFilter

func (ApigwFilter) MountRoutes

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

type ApigwFilterAPI

type ApigwFilterAPI interface {
	List(context.Context, *request.ApigwFilterList) (interface{}, error)
	Create(context.Context, *request.ApigwFilterCreate) (interface{}, error)
	Update(context.Context, *request.ApigwFilterUpdate) (interface{}, error)
	Read(context.Context, *request.ApigwFilterRead) (interface{}, error)
	Delete(context.Context, *request.ApigwFilterDelete) (interface{}, error)
	Undelete(context.Context, *request.ApigwFilterUndelete) (interface{}, error)
	DefFilter(context.Context, *request.ApigwFilterDefFilter) (interface{}, error)
	DefProxyAuth(context.Context, *request.ApigwFilterDefProxyAuth) (interface{}, error)
}

Internal API interface

type ApigwProfiler

type ApigwProfiler struct {
	Aggregation func(http.ResponseWriter, *http.Request)
	Route       func(http.ResponseWriter, *http.Request)
	Hit         func(http.ResponseWriter, *http.Request)
	PurgeAll    func(http.ResponseWriter, *http.Request)
	Purge       func(http.ResponseWriter, *http.Request)
}

HTTP API interface

func NewApigwProfiler

func NewApigwProfiler(h ApigwProfilerAPI) *ApigwProfiler

func (ApigwProfiler) MountRoutes

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

type ApigwProfilerAPI

type ApigwProfilerAPI interface {
	Aggregation(context.Context, *request.ApigwProfilerAggregation) (interface{}, error)
	Route(context.Context, *request.ApigwProfilerRoute) (interface{}, error)
	Hit(context.Context, *request.ApigwProfilerHit) (interface{}, error)
	PurgeAll(context.Context, *request.ApigwProfilerPurgeAll) (interface{}, error)
	Purge(context.Context, *request.ApigwProfilerPurge) (interface{}, error)
}

Internal API interface

type ApigwRoute

type ApigwRoute 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 NewApigwRoute

func NewApigwRoute(h ApigwRouteAPI) *ApigwRoute

func (ApigwRoute) MountRoutes

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

type ApigwRouteAPI

type ApigwRouteAPI interface {
	List(context.Context, *request.ApigwRouteList) (interface{}, error)
	Create(context.Context, *request.ApigwRouteCreate) (interface{}, error)
	Update(context.Context, *request.ApigwRouteUpdate) (interface{}, error)
	Read(context.Context, *request.ApigwRouteRead) (interface{}, error)
	Delete(context.Context, *request.ApigwRouteDelete) (interface{}, error)
	Undelete(context.Context, *request.ApigwRouteUndelete) (interface{}, error)
}

Internal API interface

type Application

type Application struct {
	List          func(http.ResponseWriter, *http.Request)
	Create        func(http.ResponseWriter, *http.Request)
	Update        func(http.ResponseWriter, *http.Request)
	Upload        func(http.ResponseWriter, *http.Request)
	FlagCreate    func(http.ResponseWriter, *http.Request)
	FlagDelete    func(http.ResponseWriter, *http.Request)
	Read          func(http.ResponseWriter, *http.Request)
	Delete        func(http.ResponseWriter, *http.Request)
	Undelete      func(http.ResponseWriter, *http.Request)
	TriggerScript func(http.ResponseWriter, *http.Request)
	Reorder       func(http.ResponseWriter, *http.Request)
}

HTTP API interface

func NewApplication

func NewApplication(h ApplicationAPI) *Application

func (Application) MountRoutes

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

type ApplicationAPI

type ApplicationAPI interface {
	List(context.Context, *request.ApplicationList) (interface{}, error)
	Create(context.Context, *request.ApplicationCreate) (interface{}, error)
	Update(context.Context, *request.ApplicationUpdate) (interface{}, error)
	Upload(context.Context, *request.ApplicationUpload) (interface{}, error)
	FlagCreate(context.Context, *request.ApplicationFlagCreate) (interface{}, error)
	FlagDelete(context.Context, *request.ApplicationFlagDelete) (interface{}, error)
	Read(context.Context, *request.ApplicationRead) (interface{}, error)
	Delete(context.Context, *request.ApplicationDelete) (interface{}, error)
	Undelete(context.Context, *request.ApplicationUndelete) (interface{}, error)
	TriggerScript(context.Context, *request.ApplicationTriggerScript) (interface{}, error)
	Reorder(context.Context, *request.ApplicationReorder) (interface{}, error)
}

Internal API interface

type Attachment

type Attachment struct {
	Read     func(http.ResponseWriter, *http.Request)
	Delete   func(http.ResponseWriter, *http.Request)
	Original func(http.ResponseWriter, *http.Request)
	Preview  func(http.ResponseWriter, *http.Request)
}

HTTP API interface

func NewAttachment

func NewAttachment(h AttachmentAPI) *Attachment

func (Attachment) MountRoutes

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

type AttachmentAPI

type AttachmentAPI interface {
	Read(context.Context, *request.AttachmentRead) (interface{}, error)
	Delete(context.Context, *request.AttachmentDelete) (interface{}, error)
	Original(context.Context, *request.AttachmentOriginal) (interface{}, error)
	Preview(context.Context, *request.AttachmentPreview) (interface{}, error)
}

Internal API interface

type Auth

type Auth struct {
	Impersonate func(http.ResponseWriter, *http.Request)
}

HTTP API interface

func NewAuth

func NewAuth(h AuthAPI) *Auth

func (Auth) MountRoutes

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

type AuthAPI

type AuthAPI interface {
	Impersonate(context.Context, *request.AuthImpersonate) (interface{}, error)
}

Internal API interface

type AuthClient

type AuthClient 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)
	RegenerateSecret func(http.ResponseWriter, *http.Request)
	ExposeSecret     func(http.ResponseWriter, *http.Request)
}

HTTP API interface

func NewAuthClient

func NewAuthClient(h AuthClientAPI) *AuthClient

func (AuthClient) MountRoutes

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

type AuthClientAPI

type AuthClientAPI interface {
	List(context.Context, *request.AuthClientList) (interface{}, error)
	Create(context.Context, *request.AuthClientCreate) (interface{}, error)
	Update(context.Context, *request.AuthClientUpdate) (interface{}, error)
	Read(context.Context, *request.AuthClientRead) (interface{}, error)
	Delete(context.Context, *request.AuthClientDelete) (interface{}, error)
	Undelete(context.Context, *request.AuthClientUndelete) (interface{}, error)
	RegenerateSecret(context.Context, *request.AuthClientRegenerateSecret) (interface{}, error)
	ExposeSecret(context.Context, *request.AuthClientExposeSecret) (interface{}, error)
}

Internal API interface

type Automation

type Automation struct {
	List          func(http.ResponseWriter, *http.Request)
	Bundle        func(http.ResponseWriter, *http.Request)
	TriggerScript func(http.ResponseWriter, *http.Request)
}

HTTP API interface

func NewAutomation

func NewAutomation(h AutomationAPI) *Automation

func (Automation) MountRoutes

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

type AutomationAPI

type AutomationAPI interface {
	List(context.Context, *request.AutomationList) (interface{}, error)
	Bundle(context.Context, *request.AutomationBundle) (interface{}, error)
	TriggerScript(context.Context, *request.AutomationTriggerScript) (interface{}, error)
}

Internal API interface

type DalConnection

type DalConnection 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 NewDalConnection

func NewDalConnection(h DalConnectionAPI) *DalConnection

func (DalConnection) MountRoutes

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

type DalConnectionAPI

type DalConnectionAPI interface {
	List(context.Context, *request.DalConnectionList) (interface{}, error)
	Create(context.Context, *request.DalConnectionCreate) (interface{}, error)
	Update(context.Context, *request.DalConnectionUpdate) (interface{}, error)
	Read(context.Context, *request.DalConnectionRead) (interface{}, error)
	Delete(context.Context, *request.DalConnectionDelete) (interface{}, error)
	Undelete(context.Context, *request.DalConnectionUndelete) (interface{}, error)
}

Internal API interface

type DalDriver

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

HTTP API interface

func NewDalDriver

func NewDalDriver(h DalDriverAPI) *DalDriver

func (DalDriver) MountRoutes

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

type DalDriverAPI

type DalDriverAPI interface {
	List(context.Context, *request.DalDriverList) (interface{}, error)
}

Internal API interface

type DalSchemaAlteration

type DalSchemaAlteration struct {
	List    func(http.ResponseWriter, *http.Request)
	Read    func(http.ResponseWriter, *http.Request)
	Apply   func(http.ResponseWriter, *http.Request)
	Dismiss func(http.ResponseWriter, *http.Request)
}

HTTP API interface

func (DalSchemaAlteration) MountRoutes

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

type DalSchemaAlterationAPI

type DalSchemaAlterationAPI interface {
	List(context.Context, *request.DalSchemaAlterationList) (interface{}, error)
	Read(context.Context, *request.DalSchemaAlterationRead) (interface{}, error)
	Apply(context.Context, *request.DalSchemaAlterationApply) (interface{}, error)
	Dismiss(context.Context, *request.DalSchemaAlterationDismiss) (interface{}, error)
}

Internal API interface

type DalSensitivityLevel

type DalSensitivityLevel 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 (DalSensitivityLevel) MountRoutes

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

type DalSensitivityLevelAPI

type DalSensitivityLevelAPI interface {
	List(context.Context, *request.DalSensitivityLevelList) (interface{}, error)
	Create(context.Context, *request.DalSensitivityLevelCreate) (interface{}, error)
	Update(context.Context, *request.DalSensitivityLevelUpdate) (interface{}, error)
	Read(context.Context, *request.DalSensitivityLevelRead) (interface{}, error)
	Delete(context.Context, *request.DalSensitivityLevelDelete) (interface{}, error)
	Undelete(context.Context, *request.DalSensitivityLevelUndelete) (interface{}, error)
}

Internal API interface

type DataPrivacy

type DataPrivacy struct {
	ConnectionList       func(http.ResponseWriter, *http.Request)
	RequestList          func(http.ResponseWriter, *http.Request)
	RequestCreate        func(http.ResponseWriter, *http.Request)
	RequestRead          func(http.ResponseWriter, *http.Request)
	RequestUpdateStatus  func(http.ResponseWriter, *http.Request)
	RequestCommentList   func(http.ResponseWriter, *http.Request)
	RequestCommentCreate func(http.ResponseWriter, *http.Request)
}

HTTP API interface

func NewDataPrivacy

func NewDataPrivacy(h DataPrivacyAPI) *DataPrivacy

func (DataPrivacy) MountRoutes

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

type DataPrivacyAPI

type DataPrivacyAPI interface {
	ConnectionList(context.Context, *request.DataPrivacyConnectionList) (interface{}, error)
	RequestList(context.Context, *request.DataPrivacyRequestList) (interface{}, error)
	RequestCreate(context.Context, *request.DataPrivacyRequestCreate) (interface{}, error)
	RequestRead(context.Context, *request.DataPrivacyRequestRead) (interface{}, error)
	RequestUpdateStatus(context.Context, *request.DataPrivacyRequestUpdateStatus) (interface{}, error)
	RequestCommentList(context.Context, *request.DataPrivacyRequestCommentList) (interface{}, error)
	RequestCommentCreate(context.Context, *request.DataPrivacyRequestCommentCreate) (interface{}, error)
}

Internal API interface

type Expression

type Expression struct {
	Evaluate func(http.ResponseWriter, *http.Request)
}

HTTP API interface

func NewExpression

func NewExpression(h ExpressionAPI) *Expression

func (Expression) MountRoutes

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

type ExpressionAPI

type ExpressionAPI interface {
	Evaluate(context.Context, *request.ExpressionEvaluate) (interface{}, error)
}

Internal API interface

type Locale

type Locale struct {
	ListResource     func(http.ResponseWriter, *http.Request)
	CreateResource   func(http.ResponseWriter, *http.Request)
	UpdateResource   func(http.ResponseWriter, *http.Request)
	ReadResource     func(http.ResponseWriter, *http.Request)
	DeleteResource   func(http.ResponseWriter, *http.Request)
	UndeleteResource func(http.ResponseWriter, *http.Request)
	List             func(http.ResponseWriter, *http.Request)
	Get              func(http.ResponseWriter, *http.Request)
}

HTTP API interface

func NewLocale

func NewLocale(h LocaleAPI) *Locale

func (Locale) MountRoutes

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

type LocaleAPI

type LocaleAPI interface {
	ListResource(context.Context, *request.LocaleListResource) (interface{}, error)
	CreateResource(context.Context, *request.LocaleCreateResource) (interface{}, error)
	UpdateResource(context.Context, *request.LocaleUpdateResource) (interface{}, error)
	ReadResource(context.Context, *request.LocaleReadResource) (interface{}, error)
	DeleteResource(context.Context, *request.LocaleDeleteResource) (interface{}, error)
	UndeleteResource(context.Context, *request.LocaleUndeleteResource) (interface{}, error)
	List(context.Context, *request.LocaleList) (interface{}, error)
	Get(context.Context, *request.LocaleGet) (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 Queues

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

HTTP API interface

func NewQueues

func NewQueues(h QueuesAPI) *Queues

func (Queues) MountRoutes

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

type QueuesAPI

type QueuesAPI interface {
	List(context.Context, *request.QueuesList) (interface{}, error)
	Create(context.Context, *request.QueuesCreate) (interface{}, error)
	Read(context.Context, *request.QueuesRead) (interface{}, error)
	Update(context.Context, *request.QueuesUpdate) (interface{}, error)
	Delete(context.Context, *request.QueuesDelete) (interface{}, error)
	Undelete(context.Context, *request.QueuesUndelete) (interface{}, error)
}

Internal API interface

type Reminder

type Reminder 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)
	Dismiss   func(http.ResponseWriter, *http.Request)
	Undismiss func(http.ResponseWriter, *http.Request)
	Snooze    func(http.ResponseWriter, *http.Request)
}

HTTP API interface

func NewReminder

func NewReminder(h ReminderAPI) *Reminder

func (Reminder) MountRoutes

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

type ReminderAPI

type ReminderAPI interface {
	List(context.Context, *request.ReminderList) (interface{}, error)
	Create(context.Context, *request.ReminderCreate) (interface{}, error)
	Update(context.Context, *request.ReminderUpdate) (interface{}, error)
	Read(context.Context, *request.ReminderRead) (interface{}, error)
	Delete(context.Context, *request.ReminderDelete) (interface{}, error)
	Dismiss(context.Context, *request.ReminderDismiss) (interface{}, error)
	Undismiss(context.Context, *request.ReminderUndismiss) (interface{}, error)
	Snooze(context.Context, *request.ReminderSnooze) (interface{}, error)
}

Internal API interface

type Report

type Report 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)
	Describe func(http.ResponseWriter, *http.Request)
	Run      func(http.ResponseWriter, *http.Request)
}

HTTP API interface

func NewReport

func NewReport(h ReportAPI) *Report

func (Report) MountRoutes

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

type ReportAPI

type ReportAPI interface {
	List(context.Context, *request.ReportList) (interface{}, error)
	Create(context.Context, *request.ReportCreate) (interface{}, error)
	Update(context.Context, *request.ReportUpdate) (interface{}, error)
	Read(context.Context, *request.ReportRead) (interface{}, error)
	Delete(context.Context, *request.ReportDelete) (interface{}, error)
	Undelete(context.Context, *request.ReportUndelete) (interface{}, error)
	Describe(context.Context, *request.ReportDescribe) (interface{}, error)
	Run(context.Context, *request.ReportRun) (interface{}, error)
}

Internal API interface

type Role

type Role 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)
	Archive       func(http.ResponseWriter, *http.Request)
	Unarchive     func(http.ResponseWriter, *http.Request)
	Undelete      func(http.ResponseWriter, *http.Request)
	Move          func(http.ResponseWriter, *http.Request)
	Merge         func(http.ResponseWriter, *http.Request)
	MemberList    func(http.ResponseWriter, *http.Request)
	MemberAdd     func(http.ResponseWriter, *http.Request)
	MemberRemove  func(http.ResponseWriter, *http.Request)
	TriggerScript func(http.ResponseWriter, *http.Request)
	CloneRules    func(http.ResponseWriter, *http.Request)
}

HTTP API interface

func NewRole

func NewRole(h RoleAPI) *Role

func (Role) MountRoutes

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

type RoleAPI

type RoleAPI interface {
	List(context.Context, *request.RoleList) (interface{}, error)
	Create(context.Context, *request.RoleCreate) (interface{}, error)
	Update(context.Context, *request.RoleUpdate) (interface{}, error)
	Read(context.Context, *request.RoleRead) (interface{}, error)
	Delete(context.Context, *request.RoleDelete) (interface{}, error)
	Archive(context.Context, *request.RoleArchive) (interface{}, error)
	Unarchive(context.Context, *request.RoleUnarchive) (interface{}, error)
	Undelete(context.Context, *request.RoleUndelete) (interface{}, error)
	Move(context.Context, *request.RoleMove) (interface{}, error)
	Merge(context.Context, *request.RoleMerge) (interface{}, error)
	MemberList(context.Context, *request.RoleMemberList) (interface{}, error)
	MemberAdd(context.Context, *request.RoleMemberAdd) (interface{}, error)
	MemberRemove(context.Context, *request.RoleMemberRemove) (interface{}, error)
	TriggerScript(context.Context, *request.RoleTriggerScript) (interface{}, error)
	CloneRules(context.Context, *request.RoleCloneRules) (interface{}, error)
}

Internal API interface

type Settings

type Settings struct {
	List    func(http.ResponseWriter, *http.Request)
	Update  func(http.ResponseWriter, *http.Request)
	Get     func(http.ResponseWriter, *http.Request)
	Set     func(http.ResponseWriter, *http.Request)
	Current func(http.ResponseWriter, *http.Request)
}

HTTP API interface

func NewSettings

func NewSettings(h SettingsAPI) *Settings

func (Settings) MountRoutes

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

type SettingsAPI

type SettingsAPI interface {
	List(context.Context, *request.SettingsList) (interface{}, error)
	Update(context.Context, *request.SettingsUpdate) (interface{}, error)
	Get(context.Context, *request.SettingsGet) (interface{}, error)
	Set(context.Context, *request.SettingsSet) (interface{}, error)
	Current(context.Context, *request.SettingsCurrent) (interface{}, error)
}

Internal API interface

type SmtpConfigurationChecker

type SmtpConfigurationChecker struct {
	Check func(http.ResponseWriter, *http.Request)
}

HTTP API interface

func (SmtpConfigurationChecker) MountRoutes

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

type SmtpConfigurationCheckerAPI

type SmtpConfigurationCheckerAPI interface {
	Check(context.Context, *request.SmtpConfigurationCheckerCheck) (interface{}, error)
}

Internal API interface

type Stats

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

HTTP API interface

func NewStats

func NewStats(h StatsAPI) *Stats

func (Stats) MountRoutes

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

type StatsAPI

type StatsAPI interface {
	List(context.Context, *request.StatsList) (interface{}, error)
}

Internal API interface

type Template

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

HTTP API interface

func NewTemplate

func NewTemplate(h TemplateAPI) *Template

func (Template) MountRoutes

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

type TemplateAPI

type TemplateAPI interface {
	List(context.Context, *request.TemplateList) (interface{}, error)
	Create(context.Context, *request.TemplateCreate) (interface{}, error)
	Read(context.Context, *request.TemplateRead) (interface{}, error)
	Update(context.Context, *request.TemplateUpdate) (interface{}, error)
	Delete(context.Context, *request.TemplateDelete) (interface{}, error)
	Undelete(context.Context, *request.TemplateUndelete) (interface{}, error)
	RenderDrivers(context.Context, *request.TemplateRenderDrivers) (interface{}, error)
	Render(context.Context, *request.TemplateRender) (interface{}, error)
}

Internal API interface

type User

type User struct {
	List                 func(http.ResponseWriter, *http.Request)
	Create               func(http.ResponseWriter, *http.Request)
	Update               func(http.ResponseWriter, *http.Request)
	PartialUpdate        func(http.ResponseWriter, *http.Request)
	Read                 func(http.ResponseWriter, *http.Request)
	Delete               func(http.ResponseWriter, *http.Request)
	Suspend              func(http.ResponseWriter, *http.Request)
	Unsuspend            func(http.ResponseWriter, *http.Request)
	Undelete             func(http.ResponseWriter, *http.Request)
	SetPassword          func(http.ResponseWriter, *http.Request)
	MembershipList       func(http.ResponseWriter, *http.Request)
	MembershipAdd        func(http.ResponseWriter, *http.Request)
	MembershipRemove     func(http.ResponseWriter, *http.Request)
	TriggerScript        func(http.ResponseWriter, *http.Request)
	SessionsRemove       func(http.ResponseWriter, *http.Request)
	ListCredentials      func(http.ResponseWriter, *http.Request)
	DeleteCredentials    func(http.ResponseWriter, *http.Request)
	ProfileAvatar        func(http.ResponseWriter, *http.Request)
	ProfileAvatarInitial func(http.ResponseWriter, *http.Request)
	DeleteAvatar         func(http.ResponseWriter, *http.Request)
	Export               func(http.ResponseWriter, *http.Request)
	Import               func(http.ResponseWriter, *http.Request)
}

HTTP API interface

func NewUser

func NewUser(h UserAPI) *User

func (User) MountRoutes

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

type UserAPI

type UserAPI interface {
	List(context.Context, *request.UserList) (interface{}, error)
	Create(context.Context, *request.UserCreate) (interface{}, error)
	Update(context.Context, *request.UserUpdate) (interface{}, error)
	PartialUpdate(context.Context, *request.UserPartialUpdate) (interface{}, error)
	Read(context.Context, *request.UserRead) (interface{}, error)
	Delete(context.Context, *request.UserDelete) (interface{}, error)
	Suspend(context.Context, *request.UserSuspend) (interface{}, error)
	Unsuspend(context.Context, *request.UserUnsuspend) (interface{}, error)
	Undelete(context.Context, *request.UserUndelete) (interface{}, error)
	SetPassword(context.Context, *request.UserSetPassword) (interface{}, error)
	MembershipList(context.Context, *request.UserMembershipList) (interface{}, error)
	MembershipAdd(context.Context, *request.UserMembershipAdd) (interface{}, error)
	MembershipRemove(context.Context, *request.UserMembershipRemove) (interface{}, error)
	TriggerScript(context.Context, *request.UserTriggerScript) (interface{}, error)
	SessionsRemove(context.Context, *request.UserSessionsRemove) (interface{}, error)
	ListCredentials(context.Context, *request.UserListCredentials) (interface{}, error)
	DeleteCredentials(context.Context, *request.UserDeleteCredentials) (interface{}, error)
	ProfileAvatar(context.Context, *request.UserProfileAvatar) (interface{}, error)
	ProfileAvatarInitial(context.Context, *request.UserProfileAvatarInitial) (interface{}, error)
	DeleteAvatar(context.Context, *request.UserDeleteAvatar) (interface{}, error)
	Export(context.Context, *request.UserExport) (interface{}, error)
	Import(context.Context, *request.UserImport) (interface{}, error)
}

Internal API interface

Jump to

Keyboard shortcuts

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