Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAccountAlreadyExists = errors.New("account already exists") ErrAccountNotFound = errors.New("account not found") )
Functions ¶
This section is empty.
Types ¶
type Health ¶
type Health interface {
Check(ctx context.Context) HealthAggregation
}
func HealthAggregator ¶
func HealthAggregator(healthChecks []HealthCheck) Health
type HealthAggregation ¶
type HealthAggregation struct { Health HealthResult `yaml:"health"` Components []HealthAggregationComponent `yaml:"components"` }
type HealthAggregationComponent ¶
type HealthAggregationComponent struct { Name string `yaml:"name"` Health HealthResult `yaml:"health"` }
type HealthResult ¶
type HealthResult string
const ( HealthUp HealthResult = "Up" HealthDown HealthResult = "Down" )
func HealthResultFromBool ¶
func HealthResultFromBool(healthUp bool) HealthResult
func (HealthResult) ToHTTPStatusCode ¶
func (r HealthResult) ToHTTPStatusCode() int
type UsernameGenerationStrategy ¶
type UsernameGenerationStrategy string
const UUIDUsernameGeneration UsernameGenerationStrategy = "uuid"
type UsernameGenerator ¶
func NewUsernameGenerator ¶
func NewUsernameGenerator(_ UsernameGenerationStrategy) (UsernameGenerator, error)
Click to show internal directories.
Click to hide internal directories.