Versions in this module Expand all Collapse all v1 v1.0.0 Oct 24, 2018 Changes in this version + const ACUART + const AppDefaultAdminScope + const AppDefaultScope + const DefaultSortApps + const DefaultSortCredentials + const DefaultSortMembers + const DefaultSortMessages + const MsgFacApp + const MsgFacAuth + const MsgFacCore + const MsgFacCron + const MsgFacMesg + const MsgFacSecu + const MsgFacUser + const MsgPriAlert + const MsgPriCrit + const MsgPriDebug + const MsgPriEmerg + const MsgPriErr + const MsgPriInfo + const MsgPriNote + const MsgPriWarn + const RCAdmin + const RCAppMan + const RCLeader + const RCUser + const RCUserMan + var DB *pop.Connection + var MessengerMethod = map[string]string + var MessengerMethodReverse = map[string]string + var MessengerPriority = map[string]int + var MsgPri = map[string]int + var MsgPriReverse = map[int]string + func AllMy(q *pop.Query, m *Member, b Belonging, all ...bool) error + func AllMyOwn(q *pop.Query, m *Member, b Belonging, all ...bool) error + func FindMy(q *pop.Query, m *Member, b Belonging, id interface{}) error + func FindMyOwn(q *pop.Query, m *Member, b Belonging, id interface{}) error + func Logger(logger buffalo.Logger) + func Marshal(m Object) string + func SelectByAttrs(m interface{}, attrs map[string]interface{}) error + type AccessGrant struct + AccessCount int + AppID uuid.UUID + CreatedAt time.Time + ID uuid.UUID + MemberID uuid.UUID + Scope string + UpdatedAt time.Time + func (g *AccessGrant) Validate(tx *pop.Connection) (*validate.Errors, error) + func (g AccessGrant) App() *App + func (g AccessGrant) Description() template.HTML + func (g AccessGrant) Member() *Member + func (g AccessGrant) String() string + type AccessGrants []AccessGrant + type App struct + AppIcon string + AppKey string + AppSecret string + CallbackURL string + Code string + CreatedAt time.Time + Description string + ID uuid.UUID + Name string + SiteURL string + UpdatedAt time.Time + func GetAppByCode(code string) *App + func GetAppByKey(key string) *App + func NewApp(name, code, desc, url, callback string, icon ...string) *App + func (a *App) AccessibleBy(q *pop.Query, o Owner, f ...bool) *pop.Query + func (a *App) AddRole(tx *pop.Connection, n, c, d string, r int, o bool) error + func (a *App) GenerateKeyPair() + func (a *App) GetRole(tx *pop.Connection, code string) *Role + func (a *App) OwnedBy(q *pop.Query, o Owner, f ...bool) *pop.Query + func (a *App) QueryParams() QueryParams + func (a *App) Validate(tx *pop.Connection) (*validate.Errors, error) + func (a *App) ValidateSave(tx *pop.Connection) (*validate.Errors, error) + func (a *App) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error) + func (a App) GetRoles() *Roles + func (a App) GrantsCount() int + func (a App) Requests() *[]RoleMap + func (a App) RequestsCount() int + func (a App) String() string + type Apps []App + func (a *Apps) AccessibleBy(q *pop.Query, o Owner, f ...bool) *pop.Query + func (a *Apps) OwnedBy(q *pop.Query, o Owner, f ...bool) *pop.Query + func (a *Apps) QueryParams() QueryParams + type Belonging interface + AccessibleBy func(*pop.Query, Owner, ...bool) *pop.Query + OwnedBy func(*pop.Query, Owner, ...bool) *pop.Query + QueryParams func() QueryParams + type Credential struct + AvatarURL string + CreatedAt time.Time + Email string + ID uuid.UUID + IsAuthorized bool + IsPrimary bool + MemberID uuid.UUID + Name string + Provider string + UpdatedAt time.Time + UserID string + func (c *Credential) AccessibleBy(q *pop.Query, o Owner, f ...bool) *pop.Query + func (c *Credential) OwnedBy(q *pop.Query, o Owner, f ...bool) *pop.Query + func (c *Credential) QueryParams() QueryParams + func (c *Credential) Save() + func (c Credential) Owner() *Member + func (c Credential) OwnerID() uuid.UUID + func (c Credential) String() string + type Credentials []Credential + func (c *Credentials) AccessibleBy(q *pop.Query, o Owner, f ...bool) *pop.Query + func (c *Credentials) OwnedBy(q *pop.Query, o Owner, f ...bool) *pop.Query + func (c *Credentials) QueryParams() QueryParams + type Doc struct + Category string + Content string + CreatedAt time.Time + ID uuid.UUID + IsPublished bool + MemberID uuid.UUID + NewCategory string + NewSubject string + Slug string + Subject string + Title string + Type string + UpdatedAt time.Time + func (d *Doc) AccessibleBy(q *pop.Query, o Owner, f ...bool) *pop.Query + func (d *Doc) OwnedBy(q *pop.Query, o Owner, f ...bool) *pop.Query + func (d *Doc) QueryParams() QueryParams + func (d *Doc) Validate(tx *pop.Connection) (*validate.Errors, error) + func (d *Doc) ValidateSave(tx *pop.Connection) (*validate.Errors, error) + func (d *Doc) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error) + func (d Doc) AuthorName() string + func (d Doc) String() string + type Docs []Doc + type Member struct + APIKey string + CreatedAt time.Time + Email string + ID uuid.UUID + Icon string + IsActive bool + Mobile string + Name string + Note string + UpdatedAt time.Time + func CreateMember(cred *Credential) (*Member, error) + func GetMember(id interface{}) *Member + func (m *Member) AccessibleBy(q *pop.Query, o Owner, f ...bool) *pop.Query + func (m *Member) AddRole(tx *pop.Connection, r *Role, active ...bool) error + func (m *Member) GetID() interface{} + func (m *Member) IsNil() bool + func (m *Member) MessageMarkAsSent(id uuid.UUID) error + func (m *Member) Messengers(args ...int) *Messengers + func (m *Member) OwnedBy(q *pop.Query, o Owner, f ...bool) *pop.Query + func (m *Member) PrimaryAlert() *Messenger + func (m *Member) PrimaryNotifier() *Messenger + func (m *Member) QueryParams() QueryParams + func (m *Member) RemoveRole(tx *pop.Connection, r *Role) error + func (m *Member) Save() + func (m *Member) Validate(tx *pop.Connection) (*validate.Errors, error) + func (m *Member) ValidateSave(tx *pop.Connection) (*validate.Errors, error) + func (m *Member) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error) + func (m Member) AccessGrantCount() int + func (m Member) AppRoles(appID uuid.UUID, flag ...bool) *Roles + func (m Member) CredentialCount() int + func (m Member) Credentials() *Credentials + func (m Member) GetAppRoleCodes(appCode string) []string + func (m Member) Grant(tx *pop.Connection, app *App, scope string) error + func (m Member) Granted(appID uuid.UUID, scope string) bool + func (m Member) GrantedApps() *Apps + func (m Member) Grants() *AccessGrants + func (m Member) HasRole(roleID uuid.UUID) bool + func (m Member) Revoke(tx *pop.Connection, app *App) error + func (m Member) Roles() *Roles + func (m Member) String() string + type Members []Member + func (m *Members) AccessibleBy(q *pop.Query, o Owner, f ...bool) *pop.Query + func (m *Members) OwnedBy(q *pop.Query, o Owner, f ...bool) *pop.Query + func (m *Members) QueryParams() QueryParams + type Message struct + AppCode string + Content string + CreatedAt time.Time + Facility string + ID uuid.UUID + IsLog bool + MemberID uuid.UUID + Priority int + Subject string + UpdatedAt time.Time + func NewMessage(tx *pop.Connection, sndrID interface{}, rcpts, bccs *Members, ...) *Message + func (m *Message) AccessibleBy(q *pop.Query, o Owner, f ...bool) *pop.Query + func (m *Message) OwnedBy(q *pop.Query, o Owner, f ...bool) *pop.Query + func (m *Message) QueryParams() QueryParams + func (m *Message) Validate(tx *pop.Connection) (*validate.Errors, error) + func (m Message) AppName() string + func (m Message) MemberMap(memberID interface{}) *MessageMap + func (m Message) Owner() *Member + func (m Message) PriorityString() string + func (m Message) String() string + type MessageMap struct + CreatedAt time.Time + ID uuid.UUID + IsBCC bool + IsRead bool + IsSent bool + MemberID uuid.UUID + MessageID uuid.UUID + UpdatedAt time.Time + func (m MessageMap) String() string + type MessageMaps []MessageMap + type Messages []Message + func (m *Messages) AccessibleBy(q *pop.Query, o Owner, f ...bool) *pop.Query + func (m *Messages) OwnedBy(q *pop.Query, o Owner, f ...bool) *pop.Query + func (m *Messages) QueryParams() QueryParams + type MessagingLog struct + CreatedAt time.Time + ID uuid.UUID + Method string + Notes string + QueueID string + Response string + SentFor string + SentTo string + Status string + Subject string + UpdatedAt time.Time + func (m MessagingLog) String() string + type MessagingLogs []MessagingLog + type Messenger struct + CreatedAt time.Time + ID uuid.UUID + IsPrimary bool + MemberID uuid.UUID + Method string + Priority int + UpdatedAt time.Time + Value string + func (m *Messenger) AccessibleBy(q *pop.Query, o Owner, f ...bool) *pop.Query + func (m *Messenger) OwnedBy(q *pop.Query, o Owner, f ...bool) *pop.Query + func (m *Messenger) QueryParams() QueryParams + func (m *Messenger) Validate(tx *pop.Connection) (*validate.Errors, error) + func (m *Messenger) ValidateSave(tx *pop.Connection) (*validate.Errors, error) + func (m *Messenger) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error) + func (m Messenger) String() string + type Messengers []Messenger + type Object interface + type Owner interface + GetID func() interface{} + type QueryParams struct + DefaultSort string + FilterKey string + FilterValue interface{} + Sort string + type Role struct + AppID uuid.UUID + Code string + CreatedAt time.Time + Description string + ID uuid.UUID + IsReadonly bool + Name string + Rank int + UpdatedAt time.Time + func GetAppRole(appCode, roleCode string) *Role + func (r *Role) Validate(tx *pop.Connection) (*validate.Errors, error) + func (r *Role) ValidateSave(tx *pop.Connection) (*validate.Errors, error) + func (r *Role) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error) + func (r Role) App() *App + func (r Role) MemberCount(isActive bool) int + func (r Role) Members(flag ...bool) *Members + func (r Role) String() string + type RoleMap struct + CreatedAt time.Time + ID int + IsActive bool + MemberID uuid.UUID + RoleID uuid.UUID + UpdatedAt time.Time + func (rm RoleMap) Member() *Member + func (rm RoleMap) Role() *Role + type Roles []Role