Documentation ¶
Index ¶
- func MakeOperationHandler(client Client, clientOperation ClientOperation) api.OperationHandler
- func MakeTenancyOperationHandler(client Client, clientOperation TenancyClientOperation) api.TenancyOperationHandler
- type AutoReconnectHandlers
- type Client
- type ClientOperation
- type EmbeddedClientHandlers
- func (e *EmbeddedClientHandlers) Config() interface{}
- func (e *EmbeddedClientHandlers) GetCredentials(ctx op_context.Context) (login string, password string, err error)
- func (e *EmbeddedClientHandlers) GetRefreshToken() string
- func (e *EmbeddedClientHandlers) InitDirect(ctx op_context.Context, login string, password string, tokenCacheKey string) error
- func (e *EmbeddedClientHandlers) InitFromConfig(configPath ...string) error
- func (e *EmbeddedClientHandlers) SaveRefreshToken(ctx op_context.Context, token string)
- type EmbeddedClientHandlersConfig
- type Handler
- type HandlerCmd
- type HandlerInTenancy
- type HandlerInTenancyCmd
- type HandlerInTenancyNil
- type HandlerInTenancyResult
- type HandlerNil
- type HandlerResult
- type InteractiveClientHandlers
- func (e *InteractiveClientHandlers) Config() interface{}
- func (e *InteractiveClientHandlers) GetCredentials(ctx op_context.Context) (string, string, error)
- func (e *InteractiveClientHandlers) GetRefreshToken() string
- func (e *InteractiveClientHandlers) Init(configPath ...string) error
- func (e *InteractiveClientHandlers) SaveRefreshToken(ctx op_context.Context, token string)
- type InteractiveClientHandlersConfig
- type ServiceClient
- type TenancyClientOperation
- type TokenKeeper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeOperationHandler ¶
func MakeOperationHandler(client Client, clientOperation ClientOperation) api.OperationHandler
func MakeTenancyOperationHandler ¶
func MakeTenancyOperationHandler(client Client, clientOperation TenancyClientOperation) api.TenancyOperationHandler
Types ¶
type AutoReconnectHandlers ¶
type AutoReconnectHandlers interface { GetRefreshToken() string SaveRefreshToken(ctx op_context.Context, token string) GetCredentials(ctx op_context.Context) (login string, password string, err error) }
type ClientOperation ¶
type EmbeddedClientHandlers ¶
type EmbeddedClientHandlers struct { app_context.WithAppBase EmbeddedClientHandlersConfig }
func NewEmbeddedClientHandlers ¶
func NewEmbeddedClientHandlers(app app_context.Context) *EmbeddedClientHandlers
func (*EmbeddedClientHandlers) Config ¶
func (e *EmbeddedClientHandlers) Config() interface{}
func (*EmbeddedClientHandlers) GetCredentials ¶
func (e *EmbeddedClientHandlers) GetCredentials(ctx op_context.Context) (login string, password string, err error)
func (*EmbeddedClientHandlers) GetRefreshToken ¶
func (e *EmbeddedClientHandlers) GetRefreshToken() string
func (*EmbeddedClientHandlers) InitDirect ¶
func (e *EmbeddedClientHandlers) InitDirect(ctx op_context.Context, login string, password string, tokenCacheKey string) error
func (*EmbeddedClientHandlers) InitFromConfig ¶
func (e *EmbeddedClientHandlers) InitFromConfig(configPath ...string) error
func (*EmbeddedClientHandlers) SaveRefreshToken ¶
func (e *EmbeddedClientHandlers) SaveRefreshToken(ctx op_context.Context, token string)
type Handler ¶
func NewHandler ¶
type HandlerCmd ¶
type HandlerCmd[Cmd any] struct { Cmd *Cmd }
func NewHandlerCmd ¶
func NewHandlerCmd[Cmd any](cmd *Cmd) *HandlerCmd[Cmd]
func (*HandlerCmd[Cmd]) Exec ¶
func (h *HandlerCmd[Cmd]) Exec(client Client, ctx op_context.Context, operation api.Operation) error
type HandlerInTenancy ¶
func NewHandlerInTenancy ¶
func NewHandlerInTenancy[Cmd any, Result any](cmd *Cmd, result *Result) *HandlerInTenancy[Cmd, Result]
func (*HandlerInTenancy[Cmd, Result]) Exec ¶
func (h *HandlerInTenancy[Cmd, Result]) Exec(client Client, ctx multitenancy.TenancyContext, operation api.Operation) error
type HandlerInTenancyCmd ¶
type HandlerInTenancyCmd[Cmd any] struct { Cmd *Cmd }
func NewHandlerInTenancyCmd ¶
func NewHandlerInTenancyCmd[Cmd any](cmd *Cmd) *HandlerInTenancyCmd[Cmd]
func (*HandlerInTenancyCmd[Cmd]) Exec ¶
func (h *HandlerInTenancyCmd[Cmd]) Exec(client Client, ctx multitenancy.TenancyContext, operation api.Operation) error
type HandlerInTenancyNil ¶
type HandlerInTenancyNil struct { }
func NewHandlerInTenancyNil ¶
func NewHandlerInTenancyNil() *HandlerInTenancyNil
func (*HandlerInTenancyNil) Exec ¶
func (h *HandlerInTenancyNil) Exec(client Client, ctx multitenancy.TenancyContext, operation api.Operation) error
type HandlerInTenancyResult ¶
type HandlerInTenancyResult[Result any] struct { Result *Result }
func NewHandlerInTenancyResult ¶
func NewHandlerInTenancyResult[Result any](result *Result) *HandlerInTenancyResult[Result]
func (*HandlerInTenancyResult[Result]) Exec ¶
func (h *HandlerInTenancyResult[Result]) Exec(client Client, ctx multitenancy.TenancyContext, operation api.Operation) error
type HandlerNil ¶
type HandlerNil struct { }
func NewHandlerNil ¶
func NewHandlerNil() *HandlerNil
func (*HandlerNil) Exec ¶
func (h *HandlerNil) Exec(client Client, ctx op_context.Context, operation api.Operation) error
type HandlerResult ¶
type HandlerResult[Result any] struct { Result *Result }
func NewHandlerResult ¶
func NewHandlerResult[Result any](result *Result) *HandlerResult[Result]
func (*HandlerResult[Result]) Exec ¶
func (h *HandlerResult[Result]) Exec(client Client, ctx op_context.Context, operation api.Operation) error
type InteractiveClientHandlers ¶
type InteractiveClientHandlers struct { app_context.WithAppBase InteractiveClientHandlersConfig }
func NewInteractiveClientHandlers ¶
func NewInteractiveClientHandlers(app app_context.Context) *InteractiveClientHandlers
func (*InteractiveClientHandlers) Config ¶
func (e *InteractiveClientHandlers) Config() interface{}
func (*InteractiveClientHandlers) GetCredentials ¶
func (e *InteractiveClientHandlers) GetCredentials(ctx op_context.Context) (string, string, error)
func (*InteractiveClientHandlers) GetRefreshToken ¶
func (e *InteractiveClientHandlers) GetRefreshToken() string
func (*InteractiveClientHandlers) Init ¶
func (e *InteractiveClientHandlers) Init(configPath ...string) error
func (*InteractiveClientHandlers) SaveRefreshToken ¶
func (e *InteractiveClientHandlers) SaveRefreshToken(ctx op_context.Context, token string)
type InteractiveClientHandlersConfig ¶
type InteractiveClientHandlersConfig struct {
TOKEN_FILE_NAME string `validate:"required,file"`
}
type ServiceClient ¶
type ServiceClient struct { generic_error.ErrorsExtenderStub api.ResourceBase // contains filtered or unexported fields }
func (*ServiceClient) ApiClient ¶
func (s *ServiceClient) ApiClient() Client
func (*ServiceClient) Client ¶
func (s *ServiceClient) Client() Client
func (*ServiceClient) Init ¶
func (s *ServiceClient) Init(client Client, serviceName string)
type TenancyClientOperation ¶
type TenancyClientOperation interface {
Exec(client Client, ctx multitenancy.TenancyContext, operation api.Operation) error
}
type TokenKeeper ¶
type TokenKeeper struct {
Token string `json:"token"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.