Documentation
¶
Index ¶
Constants ¶
View Source
const ( BCAST_ACTION_SECRET_NEW = BroadcastAction("secret:new") BCAST_ACTION_SECRET_CHANGE = BroadcastAction("secret:change") BCAST_ACTION_SECRET_REMOVE = BroadcastAction("secret:remove") BCAST_ACTION_VAULT_VERSION = BroadcastAction("vault:version") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BroadcastAction ¶ added in v0.0.5
type BroadcastAction string
type BroadcastPayload ¶ added in v0.0.5
type BroadcasterMgr ¶ added in v0.0.5
type BroadcasterMgr interface { Subscribe(address string) <-chan *Broadcast Unsubscribe(address string) Send(team, vault string, action BroadcastAction, secret *models.Secret) Stop() }
func NewInternalBroadcasterMgr ¶ added in v0.0.5
func NewInternalBroadcasterMgr() BroadcasterMgr
type InternalBroadcasterMgr ¶ added in v0.0.5
type InternalBroadcasterMgr struct {
// contains filtered or unexported fields
}
func (*InternalBroadcasterMgr) Send ¶ added in v0.0.5
func (ibm *InternalBroadcasterMgr) Send(team, vault string, action BroadcastAction, secret *models.Secret)
func (*InternalBroadcasterMgr) Stop ¶ added in v0.0.5
func (ibm *InternalBroadcasterMgr) Stop()
func (*InternalBroadcasterMgr) Subscribe ¶ added in v0.0.5
func (ibm *InternalBroadcasterMgr) Subscribe(sid string) <-chan *Broadcast
func (*InternalBroadcasterMgr) Unsubscribe ¶ added in v0.0.5
func (ibm *InternalBroadcasterMgr) Unsubscribe(sid string)
type MailMgr ¶
func NewMailMgrNULL ¶
func NewMailMgrNULL() MailMgr
func NewMailMgrSMTP ¶
func NewMailMgrSparkpost ¶
type SessionMgr ¶
type SessionMgr interface { NewSession(userId string, ip string, agent string, csrf bool) (*Session, error) UpdateSession(id, ip, agent string) (*Session, error) GetSession(id string) (*Session, error) DeleteSession(id string) error GetAllSessions(userId string) ([]*Session, error) DeleteAllSessions(userId string) error }
func NewSessionMgrDB ¶
func NewSessionMgrDB(dbp *sql.DB) SessionMgr
func NewSessionMgrRedis ¶
func NewSessionMgrRedis(connUrl string, dbId int) (SessionMgr, error)
Click to show internal directories.
Click to hide internal directories.