Versions in this module Expand all Collapse all v1 v1.4.0 Jan 14, 2016 Changes in this version + const ACCESS_TOKEN_GRANT_TYPE + const ACCESS_TOKEN_TYPE + const ACTION_CHANNEL_VIEWED + const ACTION_NEW_USER + const ACTION_POSTED + const ACTION_POST_DELETED + const ACTION_POST_EDITED + const ACTION_PREFERENCE_CHANGED + const ACTION_TYPING + const ACTION_USER_ADDED + const ACTION_USER_REMOVED + const API_URL_SUFFIX + const AUTHCODE_EXPIRE_TIME + const AUTHCODE_RESPONSE_TYPE + const CHANNEL_DIRECT + const CHANNEL_MARK_UNREAD_ALL + const CHANNEL_MARK_UNREAD_MENTION + const CHANNEL_NOTIFY_ALL + const CHANNEL_NOTIFY_DEFAULT + const CHANNEL_NOTIFY_MENTION + const CHANNEL_NOTIFY_NONE + const CHANNEL_OPEN + const CHANNEL_PRIVATE + const CHANNEL_ROLE_ADMIN + const CONN_SECURITY_NONE + const CONN_SECURITY_STARTTLS + const CONN_SECURITY_TLS + const DATABASE_DRIVER_MYSQL + const DATABASE_DRIVER_POSTGRES + const DEFAULT_CHANNEL + const DEFAULT_WEBHOOK_ICON + const DEFAULT_WEBHOOK_USERNAME + const HEADER_AUTH + const HEADER_BEARER + const HEADER_ETAG_CLIENT + const HEADER_ETAG_SERVER + const HEADER_FORWARDED + const HEADER_FORWARDED_PROTO + const HEADER_MM_SESSION_TOKEN_INDEX + const HEADER_REAL_IP + const HEADER_REQUEST_ID + const HEADER_TOKEN + const HEADER_VERSION_ID + const IMAGE_DRIVER_LOCAL + const IMAGE_DRIVER_S3 + const MAX_FILE_SIZE + const OAUTH_ACTION_EMAIL_TO_SSO + const OAUTH_ACTION_LOGIN + const OAUTH_ACTION_SIGNUP + const OAUTH_ACTION_SSO_TO_EMAIL + const POST_DEFAULT + const POST_HEADER_CHANGE + const POST_JOIN_LEAVE + const POST_SLACK_ATTACHMENT + const POST_SYSTEM_MESSAGE_PREFIX + const PREFERENCE_CATEGORY_ADVANCED_SETTINGS + const PREFERENCE_CATEGORY_DIRECT_CHANNEL_SHOW + const PREFERENCE_CATEGORY_LAST + const PREFERENCE_CATEGORY_TUTORIAL_STEPS + const PREFERENCE_NAME_LAST_CHANNEL + const PUSH_NOTIFY_ANDROID + const PUSH_NOTIFY_APPLE + const REFRESH_TOKEN_GRANT_TYPE + const RESP_EXECUTED + const RESP_NOT_IMPLEMENTED + const ROLE_SYSTEM_ADMIN + const ROLE_TEAM_ADMIN + const SERVICE_GITLAB + const SERVICE_GOOGLE + const SESSION_CACHE_SIZE + const SESSION_COOKIE_TOKEN + const SESSION_PROP_BROWSER + const SESSION_PROP_OS + const SESSION_PROP_PLATFORM + const SESSION_TOKEN_INDEX + const SYSTEM_DIAGNOSTIC_ID + const SYSTEM_LAST_SECURITY_TIME + const SYSTEM_RAN_UNIT_TESTS + const TEAM_INVITE + const TEAM_OPEN + const USER_AWAY + const USER_AWAY_TIMEOUT + const USER_NOTIFY_ALL + const USER_NOTIFY_MENTION + const USER_NOTIFY_NONE + const USER_OFFLINE + const USER_OFFLINE_TIMEOUT + const USER_ONLINE + var BuildDate = "_BUILD_DATE_" + var BuildEnterpriseReady = "_BUILD_ENTERPRISE_READY_" + var BuildHash = "_BUILD_HASH_" + var BuildNumber = "_BUILD_NUMBER_" + var CurrentVersion string = versions[0] + var IMAGE_EXTENSIONS = [5]string + var IMAGE_MIME_TYPES = map[string]string + var PartialUrlRegex = regexp.MustCompile(...) + var SplitRunes = map[rune]bool + var UrlRegex = regexp.MustCompile(...) + func ArrayFromJson(data io.Reader) []string + func ArrayToJson(objmap []string) string + func CleanTeamName(s string) string + func CleanUsername(s string) string + func ClearMentionTags(post string) string + func ComparePassword(hash string, password string) bool + func Etag(parts ...interface{}) string + func GetDMNameFromIds(userId1, userId2 string) string + func GetImageMimeType(ext string) string + func GetInfoForBytes(filename string, data []byte) (*FileInfo, *AppError) + func GetMillis() int64 + func GetPreviousVersion(currentVersion string) (int64, int64) + func GetSubDomain(s string) (string, string) + func HashPassword(password string) string + func IncomingWebhookListToJson(l []*IncomingWebhook) string + func IsChannelMarkUnreadLevelValid(markUnreadLevel string) bool + func IsChannelNotifyLevelValid(notifyLevel string) bool + func IsCurrentVersion(versionToCheck string) bool + func IsFileExtImage(ext string) bool + func IsInRole(userRoles string, inRole string) bool + func IsLower(s string) bool + func IsOfficalBuild() bool + func IsPreviousVersion(versionToCheck string) bool + func IsReservedTeamName(s string) bool + func IsValidAlphaNum(s string, allowUnderscores bool) bool + func IsValidChannelIdentifier(s string) bool + func IsValidEmail(email string) bool + func IsValidHttpUrl(rawUrl string) bool + func IsValidRoles(userRoles string) bool + func IsValidTeamName(s string) bool + func IsValidUsername(s string) bool + func MapFromJson(data io.Reader) map[string]string + func MapToJson(objmap map[string]string) string + func NewId() string + func NewRandomString(length int) string + func OAuthAppMapFromJson(data io.Reader) map[string]*OAuthApp + func OAuthAppMapToJson(a map[string]*OAuthApp) string + func OutgoingWebhookListToJson(l []*OutgoingWebhook) string + func ParseHashtags(text string) (string, string) + func SessionsToJson(o []*Session) string + func SplitVersion(version string) (int64, int64, int64) + func StringInterfaceFromJson(data io.Reader) map[string]interface + func StringInterfaceToJson(objmap map[string]interface{}) string + func TeamMapFromJson(data io.Reader) map[string]*Team + func TeamMapToJson(u map[string]*Team) string + func UserMapFromJson(data io.Reader) map[string]*User + func UserMapToJson(u map[string]*User) string + type AccessData struct + AuthCode string + RedirectUri string + RefreshToken string + Token string + func AccessDataFromJson(data io.Reader) *AccessData + func (ad *AccessData) IsValid() *AppError + func (ad *AccessData) ToJson() string + type AccessResponse struct + AccessToken string + ExpiresIn int32 + RefreshToken string + Scope string + TokenType string + func AccessResponseFromJson(data io.Reader) *AccessResponse + func (ar *AccessResponse) ToJson() string + type AnalyticsRow struct + Name string + Value float64 + func AnalyticsRowFromJson(data io.Reader) *AnalyticsRow + func (me *AnalyticsRow) ToJson() string + type AnalyticsRows []*AnalyticsRow + func AnalyticsRowsFromJson(data io.Reader) AnalyticsRows + func (me AnalyticsRows) ToJson() string + type AppError struct + DetailedError string + IsOAuth bool + Message string + RequestId string + StatusCode int + Where string + func AppErrorFromJson(data io.Reader) *AppError + func NewAppError(where string, message string, details string) *AppError + func (er *AppError) Error() string + func (er *AppError) ToJson() string + type Audit struct + Action string + CreateAt int64 + ExtraInfo string + Id string + IpAddress string + SessionId string + UserId string + func AuditFromJson(data io.Reader) *Audit + func (o *Audit) ToJson() string + type Audits []Audit + func AuditsFromJson(data io.Reader) Audits + func (o Audits) Etag() string + func (o Audits) ToJson() string + type AuthData struct + ClientId string + Code string + CreateAt int64 + ExpiresIn int32 + RedirectUri string + Scope string + State string + UserId string + func AuthDataFromJson(data io.Reader) *AuthData + func (ad *AuthData) IsExpired() bool + func (ad *AuthData) IsValid() *AppError + func (ad *AuthData) PreSave() + func (ad *AuthData) ToJson() string + type Channel struct + CreateAt int64 + CreatorId string + DeleteAt int64 + DisplayName string + ExtraUpdateAt int64 + Header string + Id string + LastPostAt int64 + Name string + Purpose string + TeamId string + TotalMsgCount int64 + Type string + UpdateAt int64 + func ChannelFromJson(data io.Reader) *Channel + func (o *Channel) Etag() string + func (o *Channel) ExtraEtag(memberLimit int) string + func (o *Channel) ExtraUpdated() + func (o *Channel) IsValid() *AppError + func (o *Channel) PreExport() + func (o *Channel) PreSave() + func (o *Channel) PreUpdate() + func (o *Channel) ToJson() string + type ChannelCounts struct + Counts map[string]int64 + UpdateTimes map[string]int64 + func ChannelCountsFromJson(data io.Reader) *ChannelCounts + func (o *ChannelCounts) Etag() string + func (o *ChannelCounts) ToJson() string + type ChannelData struct + Channel *Channel + Member *ChannelMember + func ChannelDataFromJson(data io.Reader) *ChannelData + func (o *ChannelData) Etag() string + func (o *ChannelData) ToJson() string + type ChannelExtra struct + Id string + MemberCount int64 + Members []ExtraMember + func ChannelExtraFromJson(data io.Reader) *ChannelExtra + func (o *ChannelExtra) ToJson() string + type ChannelList struct + Channels []*Channel + Members map[string]*ChannelMember + func ChannelListFromJson(data io.Reader) *ChannelList + func (o *ChannelList) Etag() string + func (o *ChannelList) ToJson() string + type ChannelMember struct + ChannelId string + LastUpdateAt int64 + LastViewedAt int64 + MentionCount int64 + MsgCount int64 + NotifyProps StringMap + Roles string + UserId string + func ChannelMemberFromJson(data io.Reader) *ChannelMember + func (o *ChannelMember) IsValid() *AppError + func (o *ChannelMember) PreSave() + func (o *ChannelMember) PreUpdate() + func (o *ChannelMember) ToJson() string + type Client struct + ApiUrl string + AuthToken string + AuthType string + HttpClient *http.Client + Url string + func NewClient(url string) *Client + func (c *Client) AddChannelMember(id, user_id string) (*Result, *AppError) + func (c *Client) AllowOAuth(rspType, clientId, redirect, scope, state string) (*Result, *AppError) + func (c *Client) ClearOAuthToken() + func (c *Client) Command(channelId string, command string, suggest bool) (*Result, *AppError) + func (c *Client) CreateChannel(channel *Channel) (*Result, *AppError) + func (c *Client) CreateDirectChannel(data map[string]string) (*Result, *AppError) + func (c *Client) CreateIncomingWebhook(hook *IncomingWebhook) (*Result, *AppError) + func (c *Client) CreateOutgoingWebhook(hook *OutgoingWebhook) (*Result, *AppError) + func (c *Client) CreatePost(post *Post) (*Result, *AppError) + func (c *Client) CreateTeam(team *Team) (*Result, *AppError) + func (c *Client) CreateTeamFromSignup(teamSignup *TeamSignup) (*Result, *AppError) + func (c *Client) CreateUser(user *User, hash string) (*Result, *AppError) + func (c *Client) CreateUserFromSignup(user *User, data string, hash string) (*Result, *AppError) + func (c *Client) DeleteChannel(id string) (*Result, *AppError) + func (c *Client) DeleteIncomingWebhook(data map[string]string) (*Result, *AppError) + func (c *Client) DeleteOutgoingWebhook(data map[string]string) (*Result, *AppError) + func (c *Client) DeletePost(channelId string, postId string) (*Result, *AppError) + func (c *Client) DoApiGet(url string, data string, etag string) (*http.Response, *AppError) + func (c *Client) DoApiPost(url string, data string) (*http.Response, *AppError) + func (c *Client) DoPost(url, data, contentType string) (*http.Response, *AppError) + func (c *Client) FindTeamByName(name string, allServers bool) (*Result, *AppError) + func (c *Client) FindTeams(email string) (*Result, *AppError) + func (c *Client) FindTeamsSendEmail(email string) (*Result, *AppError) + func (c *Client) GetAccessToken(data url.Values) (*Result, *AppError) + func (c *Client) GetAllPreferences() (*Result, *AppError) + func (c *Client) GetAllTeams() (*Result, *AppError) + func (c *Client) GetAnalytics(teamId, name string) (*Result, *AppError) + func (c *Client) GetAudits(id string, etag string) (*Result, *AppError) + func (c *Client) GetChannel(id, etag string) (*Result, *AppError) + func (c *Client) GetChannelCounts(etag string) (*Result, *AppError) + func (c *Client) GetChannelExtraInfo(id string, memberLimit int, etag string) (*Result, *AppError) + func (c *Client) GetChannels(etag string) (*Result, *AppError) + func (c *Client) GetClientProperties() (*Result, *AppError) + func (c *Client) GetConfig() (*Result, *AppError) + func (c *Client) GetFile(url string, isFullUrl bool) (*Result, *AppError) + func (c *Client) GetFileInfo(url string) (*Result, *AppError) + func (c *Client) GetLogs() (*Result, *AppError) + func (c *Client) GetMe(etag string) (*Result, *AppError) + func (c *Client) GetMoreChannels(etag string) (*Result, *AppError) + func (c *Client) GetMyTeam(etag string) (*Result, *AppError) + func (c *Client) GetPost(channelId string, postId string, etag string) (*Result, *AppError) + func (c *Client) GetPosts(channelId string, offset int, limit int, etag string) (*Result, *AppError) + func (c *Client) GetPostsAfter(channelId string, postid string, offset int, limit int, etag string) (*Result, *AppError) + func (c *Client) GetPostsBefore(channelId string, postid string, offset int, limit int, etag string) (*Result, *AppError) + func (c *Client) GetPostsSince(channelId string, time int64) (*Result, *AppError) + func (c *Client) GetPreference(category string, name string) (*Result, *AppError) + func (c *Client) GetPreferenceCategory(category string) (*Result, *AppError) + func (c *Client) GetProfiles(teamId string, etag string) (*Result, *AppError) + func (c *Client) GetPublicLink(data map[string]string) (*Result, *AppError) + func (c *Client) GetSessions(id string) (*Result, *AppError) + func (c *Client) GetStatuses(data []string) (*Result, *AppError) + func (c *Client) GetUser(id string, etag string) (*Result, *AppError) + func (c *Client) InviteMembers(invites *Invites) (*Result, *AppError) + func (c *Client) JoinChannel(id string) (*Result, *AppError) + func (c *Client) LeaveChannel(id string) (*Result, *AppError) + func (c *Client) ListIncomingWebhooks() (*Result, *AppError) + func (c *Client) ListOutgoingWebhooks() (*Result, *AppError) + func (c *Client) LoginByEmail(name string, email string, password string) (*Result, *AppError) + func (c *Client) LoginByEmailWithDevice(name string, email string, password string, deviceId string) (*Result, *AppError) + func (c *Client) LoginById(id string, password string) (*Result, *AppError) + func (c *Client) Logout() (*Result, *AppError) + func (c *Client) MockSession(sessionToken string) + func (c *Client) Must(result *Result, err *AppError) *Result + func (c *Client) PostToWebhook(id, payload string) (*Result, *AppError) + func (c *Client) RegenOutgoingWebhookToken(data map[string]string) (*Result, *AppError) + func (c *Client) RegisterApp(app *OAuthApp) (*Result, *AppError) + func (c *Client) RemoveChannelMember(id, user_id string) (*Result, *AppError) + func (c *Client) ResetPassword(data map[string]string) (*Result, *AppError) + func (c *Client) RevokeSession(sessionAltId string) (*Result, *AppError) + func (c *Client) SaveConfig(config *Config) (*Result, *AppError) + func (c *Client) SearchPosts(terms string) (*Result, *AppError) + func (c *Client) SendPasswordReset(data map[string]string) (*Result, *AppError) + func (c *Client) SetOAuthToken(token string) + func (c *Client) SetPreferences(preferences *Preferences) (*Result, *AppError) + func (c *Client) SignupTeam(email string, displayName string) (*Result, *AppError) + func (c *Client) SwitchToEmail(m map[string]string) (*Result, *AppError) + func (c *Client) SwitchToSSO(m map[string]string) (*Result, *AppError) + func (c *Client) TestEmail(config *Config) (*Result, *AppError) + func (c *Client) UpdateActive(userId string, active bool) (*Result, *AppError) + func (c *Client) UpdateChannel(channel *Channel) (*Result, *AppError) + func (c *Client) UpdateChannelHeader(data map[string]string) (*Result, *AppError) + func (c *Client) UpdateChannelPurpose(data map[string]string) (*Result, *AppError) + func (c *Client) UpdateLastViewedAt(channelId string) (*Result, *AppError) + func (c *Client) UpdateNotifyProps(data map[string]string) (*Result, *AppError) + func (c *Client) UpdatePost(post *Post) (*Result, *AppError) + func (c *Client) UpdateTeam(team *Team) (*Result, *AppError) + func (c *Client) UpdateUser(user *User) (*Result, *AppError) + func (c *Client) UpdateUserNotify(data map[string]string) (*Result, *AppError) + func (c *Client) UpdateUserPassword(userId, currentPassword, newPassword string) (*Result, *AppError) + func (c *Client) UpdateUserRoles(data map[string]string) (*Result, *AppError) + func (c *Client) UploadFile(url string, data []byte, contentType string) (*Result, *AppError) + type Command struct + ChannelId string + Command string + GotoLocation string + Response string + Suggest bool + Suggestions []*SuggestCommand + func CommandFromJson(data io.Reader) *Command + func (o *Command) AddSuggestion(suggest *SuggestCommand) + func (o *Command) ToJson() string + type Config struct + EmailSettings EmailSettings + FileSettings FileSettings + GitLabSettings SSOSettings + GoogleSettings SSOSettings + LdapSettings LdapSettings + LogSettings LogSettings + PrivacySettings PrivacySettings + RateLimitSettings RateLimitSettings + ServiceSettings ServiceSettings + SqlSettings SqlSettings + SupportSettings SupportSettings + TeamSettings TeamSettings + func ConfigFromJson(data io.Reader) *Config + func (me *Config) GetSanitizeOptions() map[string]bool + func (o *Config) GetSSOService(service string) *SSOSettings + func (o *Config) IsValid() *AppError + func (o *Config) SetDefaults() + func (o *Config) ToJson() string + type EmailSettings struct + ConnectionSecurity string + EnableSignUpWithEmail bool + FeedbackEmail string + FeedbackName string + InviteSalt string + PasswordResetSalt string + PushNotificationServer *string + RequireEmailVerification bool + SMTPPassword string + SMTPPort string + SMTPServer string + SMTPUsername string + SendEmailNotifications bool + SendPushNotifications *bool + type EncryptStringMap map[string]string + type ExtraMember struct + Email string + Id string + Nickname string + Roles string + Username string + func (o *ExtraMember) Sanitize(options map[string]bool) + type FileInfo struct + Extension string + Filename string + HasPreviewImage bool + MimeType string + Size int + func FileInfoFromJson(data io.Reader) *FileInfo + func (info *FileInfo) ToJson() string + type FileSettings struct + AmazonS3AccessKeyId string + AmazonS3Bucket string + AmazonS3BucketEndpoint string + AmazonS3Endpoint string + AmazonS3LocationConstraint *bool + AmazonS3LowercaseBucket *bool + AmazonS3Region string + AmazonS3SecretAccessKey string + Directory string + DriverName string + EnablePublicLink bool + InitialFont string + PreviewHeight int + PreviewWidth int + ProfileHeight int + ProfileWidth int + PublicLinkSalt string + ThumbnailHeight int + ThumbnailWidth int + type FileUploadResponse struct + ClientIds []string + Filenames []string + func FileUploadResponseFromJson(data io.Reader) *FileUploadResponse + func (o *FileUploadResponse) ToJson() string + type IncomingWebhook struct + ChannelId string + CreateAt int64 + DeleteAt int64 + Id string + TeamId string + UpdateAt int64 + UserId string + func IncomingWebhookFromJson(data io.Reader) *IncomingWebhook + func IncomingWebhookListFromJson(data io.Reader) []*IncomingWebhook + func (o *IncomingWebhook) IsValid() *AppError + func (o *IncomingWebhook) PreSave() + func (o *IncomingWebhook) PreUpdate() + func (o *IncomingWebhook) ToJson() string + type IncomingWebhookRequest struct + Attachments interface{} + ChannelName string + IconURL string + Props StringInterface + Text string + Type string + Username string + func IncomingWebhookRequestFromJson(data io.Reader) *IncomingWebhookRequest + type Invites struct + Invites []map[string]string + func InvitesFromJson(data io.Reader) *Invites + func (o *Invites) ToJson() string + type LdapSettings struct + BaseDN *string + BindPassword *string + BindUsername *string + EmailAttribute *string + Enable *bool + FirstNameAttribute *string + IdAttribute *string + LastNameAttribute *string + LdapPort *int + LdapServer *string + QueryTimeout *int + UsernameAttribute *string + type LogSettings struct + ConsoleLevel string + EnableConsole bool + EnableFile bool + FileFormat string + FileLevel string + FileLocation string + type Message struct + Action string + ChannelId string + Props map[string]string + TeamId string + UserId string + func MessageFromJson(data io.Reader) *Message + func NewMessage(teamId string, channelId string, userId string, action string) *Message + func (m *Message) Add(key string, value string) + func (o *Message) ToJson() string + type OAuthApp struct + CallbackUrls StringArray + ClientSecret string + CreateAt int64 + CreatorId string + Description string + Homepage string + Id string + Name string + UpdateAt int64 + func OAuthAppFromJson(data io.Reader) *OAuthApp + func (a *OAuthApp) Etag() string + func (a *OAuthApp) IsValid() *AppError + func (a *OAuthApp) IsValidRedirectURL(url string) bool + func (a *OAuthApp) PreSave() + func (a *OAuthApp) PreUpdate() + func (a *OAuthApp) Sanitize() + func (a *OAuthApp) ToJson() string + type OutgoingWebhook struct + CallbackURLs StringArray + ChannelId string + CreateAt int64 + CreatorId string + DeleteAt int64 + Id string + TeamId string + Token string + TriggerWords StringArray + UpdateAt int64 + func OutgoingWebhookFromJson(data io.Reader) *OutgoingWebhook + func OutgoingWebhookListFromJson(data io.Reader) []*OutgoingWebhook + func (o *OutgoingWebhook) HasTriggerWord(word string) bool + func (o *OutgoingWebhook) IsValid() *AppError + func (o *OutgoingWebhook) PreSave() + func (o *OutgoingWebhook) PreUpdate() + func (o *OutgoingWebhook) ToJson() string + type Post struct + ChannelId string + CreateAt int64 + DeleteAt int64 + Filenames StringArray + Hashtags string + Id string + Message string + OriginalId string + ParentId string + PendingPostId string + Props StringInterface + RootId string + Type string + UpdateAt int64 + UserId string + func PostFromJson(data io.Reader) *Post + func (o *Post) AddProp(key string, value interface{}) + func (o *Post) Etag() string + func (o *Post) IsSystemMessage() bool + func (o *Post) IsValid() *AppError + func (o *Post) MakeNonNil() + func (o *Post) PreExport() + func (o *Post) PreSave() + func (o *Post) ToJson() string + type PostList struct + Order []string + Posts map[string]*Post + func PostListFromJson(data io.Reader) *PostList + func (o *PostList) AddOrder(id string) + func (o *PostList) AddPost(post *Post) + func (o *PostList) Etag() string + func (o *PostList) Extend(other *PostList) + func (o *PostList) IsChannelId(channelId string) bool + func (o *PostList) MakeNonNil() + func (o *PostList) ToJson() string + type Preference struct + Category string + Name string + UserId string + Value string + func PreferenceFromJson(data io.Reader) *Preference + func (o *Preference) IsValid() *AppError + func (o *Preference) ToJson() string + type Preferences []Preference + func PreferencesFromJson(data io.Reader) (Preferences, error) + func (o *Preferences) ToJson() string + type PrivacySettings struct + ShowEmailAddress bool + ShowFullName bool + type PushNotification struct + Badge int + Category string + ContentAvailable int + DeviceId string + Message string + Platform string + ServerId string + Sound string + func PushNotificationFromJson(data io.Reader) *PushNotification + func (me *PushNotification) ToJson() string + type RateLimitSettings struct + EnableRateLimiter bool + MemoryStoreSize int + PerSec int + VaryByHeader string + VaryByRemoteAddr bool + type Result struct + Data interface{} + Etag string + RequestId string + type SSOSettings struct + AuthEndpoint string + Enable bool + Id string + Scope string + Secret string + TokenEndpoint string + UserApiEndpoint string + type SearchParams struct + FromUsers []string + InChannels []string + IsHashtag bool + Terms string + func ParseSearchParams(text string) []*SearchParams + type SecurityBulletin struct + AppliesToVersion string + Id string + func SecurityBulletinFromJson(data io.Reader) *SecurityBulletin + func (me *SecurityBulletin) ToJson() string + type SecurityBulletins []SecurityBulletin + func SecurityBulletinsFromJson(data io.Reader) SecurityBulletins + func (me SecurityBulletins) ToJson() string + type ServiceSettings struct + EnableDeveloper *bool + EnableIncomingWebhooks bool + EnableOAuthServiceProvider bool + EnableOutgoingWebhooks bool + EnablePostIconOverride bool + EnablePostUsernameOverride bool + EnableSecurityFixAlert *bool + EnableTesting bool + GoogleDeveloperKey string + ListenAddress string + MaximumLoginAttempts int + SegmentDeveloperKey string + SessionCacheInMinutes *int + SessionLengthMobileInDays *int + SessionLengthSSOInDays *int + SessionLengthWebInDays *int + type Session struct + CreateAt int64 + DeviceId string + ExpiresAt int64 + Id string + IsOAuth bool + LastActivityAt int64 + Props StringMap + Roles string + TeamId string + Token string + UserId string + func SessionFromJson(data io.Reader) *Session + func SessionsFromJson(data io.Reader) []*Session + func (me *Session) AddProp(key string, value string) + func (me *Session) IsExpired() bool + func (me *Session) PreSave() + func (me *Session) Sanitize() + func (me *Session) SetExpireInDays(days int) + func (me *Session) ToJson() string + type SqlSettings struct + AtRestEncryptKey string + DataSource string + DataSourceReplicas []string + DriverName string + MaxIdleConns int + MaxOpenConns int + Trace bool + type StringArray []string + type StringInterface map[string]interface + type StringMap map[string]string + func GetDefaultChannelNotifyProps() StringMap + type SuggestCommand struct + Description string + Suggestion string + func SuggestCommandFromJson(data io.Reader) *SuggestCommand + func (o *SuggestCommand) ToJson() string + type SupportSettings struct + AboutLink *string + HelpLink *string + PrivacyPolicyLink *string + ReportAProblemLink *string + SupportEmail *string + TermsOfServiceLink *string + type System struct + Name string + Value string + func SystemFromJson(data io.Reader) *System + func (o *System) ToJson() string + type Team struct + AllowOpenInvite bool + AllowTeamListing bool + AllowedDomains string + CompanyName string + CreateAt int64 + DeleteAt int64 + DisplayName string + Email string + Id string + InviteId string + Name string + Type string + UpdateAt int64 + func TeamFromJson(data io.Reader) *Team + func (o *Team) Etag() string + func (o *Team) IsValid(restrictTeamNames bool) *AppError + func (o *Team) PreExport() + func (o *Team) PreSave() + func (o *Team) PreUpdate() + func (o *Team) Sanitize() + func (o *Team) ToJson() string + type TeamSettings struct + EnableTeamCreation bool + EnableTeamListing *bool + EnableUserCreation bool + MaxUsersPerTeam int + RestrictCreationToDomains string + RestrictTeamNames *bool + SiteName string + type TeamSignup struct + Data string + Hash string + Invites []string + Team Team + User User + func TeamSignupFromJson(data io.Reader) *TeamSignup + func (o *TeamSignup) ToJson() string + type User struct + AllowMarketing bool + AuthData string + AuthService string + CreateAt int64 + DeleteAt int64 + Email string + EmailVerified bool + FailedAttempts int + FirstName string + Id string + LastActivityAt int64 + LastName string + LastPasswordUpdate int64 + LastPictureUpdate int64 + LastPingAt int64 + Nickname string + NotifyProps StringMap + Password string + Props StringMap + Roles string + TeamId string + ThemeProps StringMap + UpdateAt int64 + Username string + func UserFromJson(data io.Reader) *User + func (u *User) AddNotifyProp(key string, value string) + func (u *User) AddProp(key string, value string) + func (u *User) ClearNonProfileFields() + func (u *User) Etag() string + func (u *User) GetDisplayName() string + func (u *User) GetFullName() string + func (u *User) IsAway() bool + func (u *User) IsInRole(inRole string) bool + func (u *User) IsOffline() bool + func (u *User) IsSSOUser() bool + func (u *User) IsValid() *AppError + func (u *User) MakeNonNil() + func (u *User) PreExport() + func (u *User) PreSave() + func (u *User) PreUpdate() + func (u *User) Sanitize(options map[string]bool) + func (u *User) SetDefaultNotifications() + func (u *User) ToJson() string Incompatible versions in this module v4.10.10+incompatible Jun 14, 2019