Documentation ¶
Index ¶
Constants ¶
View Source
const ( AUTH_USER = iota AUTH_ADMIN AUTH_SU )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthBackend ¶
type AuthBackend struct { StorageOnline bool FrontendOnline bool Frontends []Consumer AuthChannel chan AuthRequest AddChannel chan User DelChannel chan User UpdateChannel chan User Closer chan bool Response chan AuthResponse // contains filtered or unexported fields }
func NewAuthBackend ¶
func NewAuthBackend() *AuthBackend
func (*AuthBackend) AddFrontend ¶
func (b *AuthBackend) AddFrontend(c *Consumer)
func (*AuthBackend) ConnectStorage ¶
func (b *AuthBackend) ConnectStorage(s *data.StorageConnection)
func (*AuthBackend) Run ¶
func (b *AuthBackend) Run()
type AuthFrontend ¶
type AuthRequest ¶
type AuthResponse ¶
type Consumer ¶
type Consumer struct { ConsumerInterface Id []byte Name string Description string Key *rsa.PrivateKey GrandRequester chan GrandRequest GrandResponder chan GrandResponse }
type ConsumerAccess ¶
type ConsumerInterface ¶
type ConsumerInterface interface {
ConnectAuthBackend(b *AuthBackend)
}
type GrandRequest ¶
type GrandResponse ¶
Click to show internal directories.
Click to hide internal directories.