handler

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliasHandler

type AliasHandler struct {
	*Handler
	// contains filtered or unexported fields
}

AliasHandler - contains handlers that uses the AliasMemory interface methods

func (*AliasHandler) HandleCreate

func (ah *AliasHandler) HandleCreate() rest.Handler

HandleCreate - returns the handle function that manages the creation of an Alias

func (*AliasHandler) HandleDelete

func (ah *AliasHandler) HandleDelete() rest.Handler

HandleDelete - returns a handle function that deletes the Alias of the given path

func (*AliasHandler) HandleGet

func (ah *AliasHandler) HandleGet() rest.Handler

HandleGet - return a handle function that obtains a Alias by the reference given

func (*AliasHandler) HandleUpdate

func (ah *AliasHandler) HandleUpdate() rest.Handler

HandleUpdate - returns a handle function that updates the Alias with the parameters given in the request

type AppHandler

type AppHandler struct {
	*Handler
	// contains filtered or unexported fields
}

AppHandler - contains handlers that uses the AppMemory interface methods

func (*AppHandler) HandleCreate

func (ah *AppHandler) HandleCreate() rest.Handler

HandleCreate - returns the handle function that manages the creation of a dApp

func (*AppHandler) HandleDelete

func (ah *AppHandler) HandleDelete() rest.Handler

HandleDelete - returns a handle function that deletes the dApp of the given path

func (*AppHandler) HandleGet

func (ah *AppHandler) HandleGet() rest.Handler

HandleGet - return a handle function that obtains a dApp by the reference query given

func (*AppHandler) HandleUpdate

func (ah *AppHandler) HandleUpdate() rest.Handler

HandleUpdate - returns a handle function that updates the dApp with the parameters given in the request

type BrokerHandler

type BrokerHandler struct {
	*Handler
	// contains filtered or unexported fields
}

BrokerHandler - contains handlers that uses the BrokerManager interface methods

func (*BrokerHandler) HandleGet

func (bh *BrokerHandler) HandleGet() rest.Handler

HandleGet returns the get handler for brokers

func (*BrokerHandler) KafkaCreateHandler

func (bh *BrokerHandler) KafkaCreateHandler() rest.Handler

KafkaCreateHandler is the function that processes requests at the /brokers/kafka endpoint

type ChannelHandler

type ChannelHandler struct {
	*Handler
}

ChannelHandler - contains handlers that uses the ChannelMemory interface methods

func (*ChannelHandler) HandleCreate

func (ch *ChannelHandler) HandleCreate() rest.Handler

HandleCreate - returns the handle function that manages the creation of a Channel

func (*ChannelHandler) HandleDelete

func (ch *ChannelHandler) HandleDelete() rest.Handler

HandleDelete - returns a handle function that deletes the Channel of the given path

func (*ChannelHandler) HandleGet

func (ch *ChannelHandler) HandleGet() rest.Handler

HandleGet - return a handle function that obtains a Channel by the reference given

func (*ChannelHandler) HandleUpdate

func (ch *ChannelHandler) HandleUpdate() rest.Handler

HandleUpdate - returns a handle function that updates the Channel with the parameters given in the request

type Handler

type Handler struct {
	Memory   memory.Manager
	Operator operators.OperatorInterface
	Auth     auth.Auth
	// contains filtered or unexported fields
}

Handler is a general handler for inspr routes. It contains the necessary components for managing components on each route.

func NewHandler

func NewHandler(memory memory.Manager, operator operators.OperatorInterface, auth auth.Auth) *Handler

NewHandler creates a handler from a memory manager and an operator. It also initializes the reactors for changes on the cluster.

func (*Handler) ControllerRefreshHandler

func (h *Handler) ControllerRefreshHandler() rest.Handler

ControllerRefreshHandler handles requests for token refresing on inspr controllers on Insprd

func (*Handler) GetAuth

func (handler *Handler) GetAuth() auth.Auth

GetAuth returns the handler's Auth interface

func (*Handler) GetCancel added in v0.1.3

func (handler *Handler) GetCancel() func()

GetCancel returns the transaction cancelation function for the operations

func (*Handler) InitHandler

func (h *Handler) InitHandler() rest.Handler

InitHandler handles requests for cluster auth initialization

func (*Handler) NewAliasHandler

func (handler *Handler) NewAliasHandler() *AliasHandler

NewAliasHandler - returns the handle function that manages the creation of an Alias

func (*Handler) NewAppHandler

func (handler *Handler) NewAppHandler() *AppHandler

NewAppHandler - returns the handle function that manages the creation of a dApp

func (*Handler) NewBrokerHandler

func (handler *Handler) NewBrokerHandler() *BrokerHandler

NewBrokerHandler - returns the handle functions that regard brokers

func (*Handler) NewChannelHandler

func (handler *Handler) NewChannelHandler() *ChannelHandler

NewChannelHandler - returns the handle function that manages the creation of a Channel

func (*Handler) NewTypeHandler

func (handler *Handler) NewTypeHandler() *TypeHandler

NewTypeHandler - returns the handle function that manages the creation of a Type

func (*Handler) TokenHandler

func (h *Handler) TokenHandler() rest.Handler

TokenHandler handles requests for token creation on Insprd

type TypeHandler

type TypeHandler struct {
	*Handler
	// contains filtered or unexported fields
}

TypeHandler - contains handlers that uses the TypeMemory interface methods

func (*TypeHandler) HandleCreate

func (th *TypeHandler) HandleCreate() rest.Handler

HandleCreate - returns the handle function that manages the creation of a Type

func (*TypeHandler) HandleDelete

func (th *TypeHandler) HandleDelete() rest.Handler

HandleDelete - returns a handle function that deletes the Type of the given path

func (*TypeHandler) HandleGet

func (th *TypeHandler) HandleGet() rest.Handler

HandleGet - return a handle function that obtains a Type by the reference given

func (*TypeHandler) HandleUpdate

func (th *TypeHandler) HandleUpdate() rest.Handler

HandleUpdate - returns a handle function that updates the Type with the parameters given in the request

Jump to

Keyboard shortcuts

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