Documentation
¶
Index ¶
Constants ¶
View Source
const ( // MaxProfileImageSize is the maximum length in bytes of the profile image file. MaxProfileImageSize = 50 * 1024 * 1024 // 50Mb )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
GetUser(userID string) (*model.User, error)
GetUserByUsername(userName string) (*model.User, error)
CreateUserAccessToken(userID, description string) (*model.UserAccessToken, error)
RevokeUserAccessToken(tokenID string) error
SetProfileImage(userID string, content io.Reader) error
GetChannel(channelID string) (*model.Channel, error)
GetChannelMember(channelID, userID string) (*model.ChannelMember, error)
GetTeam(teamID string) (*model.Team, error)
GetTeamMember(teamID, userID string) (*model.TeamMember, error)
GetPost(postID string) (*model.Post, error)
CreateOAuthApp(app *model.OAuthApp) error
GetOAuthApp(appID string) (*model.OAuthApp, error)
DeleteOAuthApp(appID string) error
GetBot(botUserID string) (*model.Bot, error)
CreateBot(bot *model.Bot) error
EnableBot(botUserID string) (*model.Bot, error)
DisableBot(botUserID string) (*model.Bot, error)
}
func NewRPCClient ¶
Click to show internal directories.
Click to hide internal directories.