Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeJson = "application/json" TypeForm = "application/x-www-form-urlencoded" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
Auth is an auth controller which allows access to all connections and topics.
func (*Auth) OnACLCheck ¶
OnACLCheck returns true if the connecting client has matching read or write access to subscribe or publish to a given topic.
func (*Auth) OnConnectAuthenticate ¶
OnConnectAuthenticate returns true if the connecting client has rules which provide access in the auth ledger.
type Options ¶
type Options struct {
pa.Blacklist
AuthMode byte `json:"auth-mode" yaml:"auth-mode"`
AclMode byte `json:"acl-mode" yaml:"acl-mode"`
TlsEnable bool `json:"tls-enable" yaml:"tls-enable"`
TlsCert string `json:"tls-cert" yaml:"tls-cert"`
TlsKey string `json:"tls-key" yaml:"tls-key"`
Method string `json:"method" yaml:"method"`
ContentType string `json:"content-type" yaml:"content-type"`
AuthUrl string `json:"auth-url" yaml:"auth-url"`
AclUrl string `json:"acl-url" yaml:"acl-url"`
}
Click to show internal directories.
Click to hide internal directories.