confirmation_control_server

package
v0.0.0-...-8122643 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ExternalServerType string = "confirmation_control_external"
View Source
const InternalServerType = "confirmation_control_internal"

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthFactory

type AuthFactory struct {
	SmsManager sms.SmsManager
}

func (*AuthFactory) Create

func (f *AuthFactory) Create(protocol string) (auth.AuthHandler, error)

type ConfirmationControlServer

type ConfirmationControlServer struct {
	*ExternalServer
	*InternalServer
}

func New

func New(externalServerCfg ...ExternalServerCfg) *ConfirmationControlServer

func (*ConfirmationControlServer) Init

func (*ConfirmationControlServer) Run

type ExternalServer

type ExternalServer struct {
	ExternalServerConfig
	// contains filtered or unexported fields
}

func NewExternalServer

func NewExternalServer(config ...ExternalServerCfg) *ExternalServer

func (*ExternalServer) ApiServer

func (s *ExternalServer) ApiServer() api_server.Server

func (*ExternalServer) BaseUrl

func (s *ExternalServer) BaseUrl() string

func (*ExternalServer) CallbackMicroserviceClient

func (s *ExternalServer) CallbackMicroserviceClient() *pool_misrocervice_client.PoolMicroserviceClient

func (*ExternalServer) Config

func (s *ExternalServer) Config() interface{}

func (*ExternalServer) Construct

func (s *ExternalServer) Construct(config ...ExternalServerCfg)

func (*ExternalServer) Init

type ExternalServerCfg

type ExternalServerCfg struct {
	SmsManager   sms.SmsManager
	SmsProviders sms.ProviderFactory
}

type ExternalServerConfig

type ExternalServerConfig struct {
	EXPLICIT_CODE_CHECK bool
	SMS_DB_SERVICE_ROLE string
}

type InternalServer

type InternalServer struct {
	InternalServerConfig

	*pool_microservice_server.PoolMicroserviceServer
	// contains filtered or unexported fields
}

func NewInternalServer

func NewInternalServer() *InternalServer

func (*InternalServer) Config

func (s *InternalServer) Config() interface{}

func (*InternalServer) Init

func (s *InternalServer) Init(app app_with_multitenancy.AppWithMultitenancy, ctx op_context.Context, basePublicUrl string, configPath ...string) error

type InternalServerConfig

type InternalServerConfig struct {
	TOKEN_TTL int `default:"180" validate:"gte=1" vmessage:"Token TTL must be positive"`
}

Jump to

Keyboard shortcuts

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