# Functions
AllMy collect all instances of belongings accessible by owner.
AllMyOwn collect all instances of belongings accessible by owner.
CreateMember creates a member with an associated credential.
FindMy find a single instance of belonging accessible by owner.
FindMyOwn find a single instance of belonging accessible by owner.
GetAppByCode search and returns an app instance by given code, or nil.
GetAppByKey returns an app instance has given app_key or nil.
GetAppRole returns role instance found by given app code and role code.
GetMember picks a member instance with given id.
Logger set logger for models.
Marshal returns JSON marshalled string from given object.
NewApp create an app with given values.
NewMessage creates new message with given parameters.
SelectByAttrs find and store models with given search attributes.
# Constants
default values.
default values.
default values.
default values.
common constants.
common constants.
common constants.
constants for messaging/logging subsystem.
constants for messaging/logging subsystem.
constants for messaging/logging subsystem.
constants for messaging/logging subsystem.
constants for messaging/logging subsystem.
constants for messaging/logging subsystem.
constants for messaging/logging subsystem.
for alert.
FATAL.
constants for messaging/logging subsystem.
RESERVED.
constants for messaging/logging subsystem.
constants for messaging/logging subsystem.
for notification.
constants for messaging/logging subsystem.
standard role codes.
standard role codes.
standard role codes.
standard role codes.
standard role codes.
# Variables
DB and others: shared variables for models.
MessengerMethod is a map for method name to code string.
MessengerMethodReverse is a reverse map for method code to name.
MessengerPriority is a map for priority string to code.
MsgPri is a map for name to code referencing of message priority.
MsgPriReverse is a map for code to name referencing of message priority.
# Structs
AccessGrant is the linkage between Member and App.
App is model for application which can be authenticated with uart.
Credential is the model for oauth2 information from 3rd party providers.
Doc is a structure for documentations.
Member is the main model which presents the user.
Message is a structure for messaging/logging subsystem.
MessageMap is structure for connection messages and members.
MessagingLog is a structure for log of messaging.
Messenger is a structure for messaging methods.
QueryParams is structure contains query parameters.
Role is used to set member's privilege for each apps.
RoleMap is a mapping object for role and member.
# Type aliases
AccessGrants is array of AccessGrants.
Apps is array of App.
Credentials is an array of Credentials.
Docs is an array of Docs.
Members is an array of Members.
MessageMaps is an array of message map.
Messages is an array of Messages.
MessagingLogs is an array of Messages.
Messengers is an array of Messengers.
Roles is array of Role.