mmclient

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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 NewHTTPClient

func NewHTTPClient(conf config.Config, token string) Client

func NewRPCClient

func NewRPCClient(c *pluginapi.Client) Client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL