Documentation ¶
Index ¶
- type AuthContext
- func (c *AuthContext) AddData(key string, value interface{})
- func (c *AuthContext) Authenticate(admin *flamed.Admin) bool
- func (c *AuthContext) AuthenticateSuperUser(admin *flamed.Admin) bool
- func (c *AuthContext) GetAuthorizationData() (string, string)
- func (c *AuthContext) GetBasicUsernameAndPassword(authData string) (string, string)
- func (c *AuthContext) GetUsernameAndPasswordFromAuth() (string, string)
- func (c *AuthContext) GetUsernameFromAuth() string
- func (c *AuthContext) IsSuperUserPasswordValid(admin *flamed.Admin, username string, password string) bool
- func (c *AuthContext) IsUserPasswordValid(admin *flamed.Admin, username string, password string) bool
- type FlamedContext
- func (f *FlamedContext) AddTP(tp iface.ITransactionProcessor)
- func (f *FlamedContext) Flamed() *flamed.Flamed
- func (f *FlamedContext) GlobalRequestTimeout() time.Duration
- func (f *FlamedContext) SetFlamed(fd *flamed.Flamed)
- func (f *FlamedContext) SetGlobalTimeout(t time.Duration)
- func (f *FlamedContext) TransactionProcessorMap() map[string]iface.ITransactionProcessor
- type GlobalOperationContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthContext ¶
type AuthContext struct { URL string Host string RequestURI string RemoteAddr string Protocol string Data map[string]interface{} KVPair map[string][]string }
func (*AuthContext) AddData ¶
func (c *AuthContext) AddData(key string, value interface{})
func (*AuthContext) Authenticate ¶
func (c *AuthContext) Authenticate(admin *flamed.Admin) bool
func (*AuthContext) AuthenticateSuperUser ¶
func (c *AuthContext) AuthenticateSuperUser(admin *flamed.Admin) bool
func (*AuthContext) GetAuthorizationData ¶
func (c *AuthContext) GetAuthorizationData() (string, string)
func (*AuthContext) GetBasicUsernameAndPassword ¶
func (c *AuthContext) GetBasicUsernameAndPassword(authData string) (string, string)
func (*AuthContext) GetUsernameAndPasswordFromAuth ¶
func (c *AuthContext) GetUsernameAndPasswordFromAuth() (string, string)
func (*AuthContext) GetUsernameFromAuth ¶
func (c *AuthContext) GetUsernameFromAuth() string
func (*AuthContext) IsSuperUserPasswordValid ¶
func (*AuthContext) IsUserPasswordValid ¶
type FlamedContext ¶
type FlamedContext struct {
// contains filtered or unexported fields
}
func NewFlamedContext ¶
func NewFlamedContext() *FlamedContext
func (*FlamedContext) AddTP ¶
func (f *FlamedContext) AddTP(tp iface.ITransactionProcessor)
func (*FlamedContext) Flamed ¶
func (f *FlamedContext) Flamed() *flamed.Flamed
func (*FlamedContext) GlobalRequestTimeout ¶
func (f *FlamedContext) GlobalRequestTimeout() time.Duration
func (*FlamedContext) SetFlamed ¶
func (f *FlamedContext) SetFlamed(fd *flamed.Flamed)
func (*FlamedContext) SetGlobalTimeout ¶
func (f *FlamedContext) SetGlobalTimeout(t time.Duration)
func (*FlamedContext) TransactionProcessorMap ¶
func (f *FlamedContext) TransactionProcessorMap() map[string]iface.ITransactionProcessor
type GlobalOperationContext ¶
type GlobalOperationContext struct { AccessControl *pb.AccessControl GlobalOperation *flamed.GlobalOperation }
Click to show internal directories.
Click to hide internal directories.