Documentation ¶
Index ¶
- Constants
- type AuthFactory
- type ConfirmationControlServer
- type ExternalServer
- func (s *ExternalServer) ApiServer() api_server.Server
- func (s *ExternalServer) BaseUrl() string
- func (s *ExternalServer) CallbackMicroserviceClient() *pool_misrocervice_client.PoolMicroserviceClient
- func (s *ExternalServer) Config() interface{}
- func (s *ExternalServer) Construct(config ...ExternalServerCfg)
- func (s *ExternalServer) Init(app app_with_multitenancy.AppWithMultitenancy, ctx op_context.Context, ...) error
- type ExternalServerCfg
- type ExternalServerConfig
- type InternalServer
- type InternalServerConfig
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 (s *ConfirmationControlServer) Init(app app_with_multitenancy.AppWithMultitenancy, ctx op_context.Context, configPath ...string) error
func (*ConfirmationControlServer) Run ¶
func (s *ConfirmationControlServer) Run(fin background_worker.Finisher)
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 ¶
func (s *ExternalServer) Init(app app_with_multitenancy.AppWithMultitenancy, ctx op_context.Context, configPath ...string) error
type ExternalServerCfg ¶
type ExternalServerCfg struct { SmsManager sms.SmsManager SmsProviders sms.ProviderFactory }
type ExternalServerConfig ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.