Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
func (*Api) Get ¶
func (a *Api) Get(req *events.AuthRequest) (*events.AuthResponse, error)
func (*Api) SendAcct ¶
func (a *Api) SendAcct(acct *events.AcctRequest)
func (*Api) SendPostAuth ¶
func (a *Api) SendPostAuth(req events.AuthRequest, resp events.AuthResponse)
type ApiConfig ¶
type ApiConfig struct {
Auth struct {
Addresses []string `yaml:"addresses"`
AliveChecking struct {
Enabled bool `yaml:"enabled"`
DisableTimeout time.Duration `yaml:"disable_timeout"`
} `yaml:"alive_checking"`
Caching struct {
Enabled bool `yaml:"enabled"`
ActualizeTimeout time.Duration `yaml:"actualize_timeout"`
TimeoutExpires time.Duration `yaml:"expire_timeout"`
} `yaml:"caching"`
} `yaml:"auth"`
PostAuth struct {
Enabled bool `yaml:"enabled"`
CountReaders int `yaml:"count_readers"`
Addresses []string `yaml:"addresses"`
} `yaml:"postauth"`
Acct struct {
Enabled bool `yaml:"enabled"`
CountReaders int `yaml:"count_readers"`
Addresses []string `yaml:"addresses"`
} `yaml:"acct"`
Timeout time.Duration `yaml:"timeout"`
}
type ApiResponse ¶
type ApiResponse struct {
Data events.AuthResponse `json:"data"`
Meta interface{} `json:"meta"`
StatusCode int `json:"statusCode"`
}
type PostAuth ¶
type PostAuth struct {
Request events.AuthRequest `json:"request"`
Response events.AuthResponse `json:"response"`
}
Click to show internal directories.
Click to hide internal directories.