Documentation ¶
Index ¶
- Constants
- func CanonicalName() string
- func CanonicalRPCName() string
- func CanonicalWebName() string
- func DefaultConfDir(newPSegments ...string) string
- func DefaultConfPath() string
- func DefaultDocsDir() string
- func DefaultEmailInviteTpl() string
- func DefaultEmailResetPassTpl() string
- func DefaultEmailVerifyTpl() string
- func DefaultInstallDir() string
- func DefaultInstallPath() string
- func DefaultPhoneInviteTpl() string
- func DefaultPhoneResetPassTpl() string
- func DefaultPhoneVerifyTpl() string
- func DefaultSysDUnitFilePath() string
- func DefaultSysDUnitName() string
- func DefaultTplDir() string
- func VersionMajorPrefixed() string
- func WebNamePrefix() string
- func WebRootURL() string
- type AfricasTalking
- type Auth
- type Facebook
- type General
- type JWT
- type MessageBird
- type SMS
- type SMTP
- type Service
- type Twilio
Constants ¶
View Source
const ( Name = "authms" VersionFull = "0.4.1" // Use http://semver.org standards Description = "Authentication Micro-Service" RPCNamePrefix = "" SMSAPITwilio = "twilio" SMSAPIAfricasTalking = "africasTalking" SMSAPIMessageBird = "messageBird" TimeFormat = time.RFC3339 APIKeyLength = 56 DocsPath = "docs" )
Compile time constants that should not be configurable during runtime.
Variables ¶
This section is empty.
Functions ¶
func CanonicalName ¶
func CanonicalName() string
func CanonicalRPCName ¶
func CanonicalRPCName() string
func CanonicalWebName ¶
func CanonicalWebName() string
func DefaultConfDir ¶
DefaultConfDir sets the value of the conf dir to use and returns it. It falls back to default - sysDConfDir() - if newPSegments has zero len.
func DefaultConfPath ¶
func DefaultConfPath() string
func DefaultDocsDir ¶
func DefaultDocsDir() string
func DefaultEmailInviteTpl ¶
func DefaultEmailInviteTpl() string
func DefaultEmailResetPassTpl ¶
func DefaultEmailResetPassTpl() string
func DefaultEmailVerifyTpl ¶
func DefaultEmailVerifyTpl() string
func DefaultInstallDir ¶
func DefaultInstallDir() string
func DefaultInstallPath ¶
func DefaultInstallPath() string
func DefaultPhoneInviteTpl ¶
func DefaultPhoneInviteTpl() string
func DefaultPhoneResetPassTpl ¶
func DefaultPhoneResetPassTpl() string
func DefaultPhoneVerifyTpl ¶
func DefaultPhoneVerifyTpl() string
func DefaultSysDUnitFilePath ¶
func DefaultSysDUnitFilePath() string
func DefaultSysDUnitName ¶
func DefaultSysDUnitName() string
func DefaultTplDir ¶
func DefaultTplDir() string
func VersionMajorPrefixed ¶
func VersionMajorPrefixed() string
func WebNamePrefix ¶
func WebNamePrefix() string
func WebRootURL ¶
func WebRootURL() string
Types ¶
type AfricasTalking ¶
type Auth ¶
type Auth struct { AllowSelfReg bool `json:"allowSelfReg" yaml:"allowSelfReg"` LockDevsToUsers bool `json:"lockDevsToUsers" yaml:"lockDevsToUsers"` Facebook Facebook `json:"facebook,omitempty" yaml:"facebook"` BlackListFailCount int `json:"blackListFailCount" yaml:"blackListFailCount"` BlacklistWindow time.Duration `json:"blacklistWindow" yaml:"blacklistWindow"` }
type General ¶
type General struct { Service Service `json:"serviceConfig,omitempty" yaml:"serviceConfig"` Database crdb.Config `json:"database,omitempty" yaml:"database"` Authentication Auth `json:"authentication,omitempty" yaml:"authentication"` Token JWT `json:"token,omitempty" yaml:"token"` SMTP SMTP `json:"SMTP" yaml:"SMTP"` SMS SMS `json:"sms" yaml:"sms"` }
type MessageBird ¶
type SMS ¶
type SMS struct { TestNumber string `json:"testNumber" yaml:"testNumber"` ActiveAPI string `json:"activeAPI" yaml:"activeAPI"` Twilio Twilio `json:"twilio" yaml:"twilio"` AfricasTalking AfricasTalking `json:"africasTalking" yaml:"africasTalking"` MessageBird MessageBird `json:"messageBird" yaml:"messageBird"` InvitationTpl string `json:"invitationTpl,omitempty" yaml:"invitationTpl,omitempty"` ResetPWDTpl string `json:"resetPwdTpl,omitempty" yaml:"resetPwdTpl,omitempty"` VerifyTpl string `json:"verifyTpl,omitempty" yaml:"verifyTpl,omitempty"` }
type SMTP ¶
type SMTP struct { ServerAddress string `json:"serverAddress,omitempty" yaml:"serverAddress,omitempty"` TLSPort int32 `json:"TLSPort,omitempty" yaml:"TLSPort,omitempty"` SSLPort int32 `json:"SSLPort,omitempty" yaml:"SSLPort,omitempty"` Username string `json:"username,omitempty" yaml:"username,omitempty"` PasswordFile string `json:"passwordFile,omitempty" yaml:"passwordFile,omitempty"` FromEmail string `json:"fromEmail,omitempty" yaml:"fromEmail,omitempty"` TestEmail string `json:"testEmail" yaml:"testEmail"` CreatedAt string `json:"createdAt,omitempty" yaml:"createdAt,omitempty"` UpdatedAt string `json:"updatedAt,omitempty" yaml:"updatedAt,omitempty"` InvitationTpl string `json:"invitationTpl,omitempty" yaml:"invitationTpl,omitempty"` ResetPWDTpl string `json:"resetPwdTpl,omitempty" yaml:"resetPwdTpl,omitempty"` VerifyTpl string `json:"verifyTpl,omitempty" yaml:"verifyTpl,omitempty"` }
type Service ¶
type Service struct { RegisterInterval time.Duration `json:"registerInterval,omitempty" yaml:"registerInterval"` LoadBalanceVersion string `json:"loadBalanceVersion,omitempty" yaml:"loadBalanceVersion"` MasterAPIKey string `json:"masterAPIKey,omitempty" yaml:"masterAPIKey"` AllowedOrigins []string `json:"allowedOrigins" yaml:"allowedOrigins"` AppName string `json:"appName" yaml:"appName"` WebAppURL string `json:"webAppURL" yaml:"webAppURL"` URL string `json:"URL" yaml:"URL"` }
Click to show internal directories.
Click to hide internal directories.