client

package
v0.0.0-...-6a1fd9b Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidStampName = errors.New("invalid stamp name")
)

Functions

This section is empty.

Types

type Client

type Client interface {
	SendMessage(ctx context.Context, channelId uuid.UUID, message string, embed bool) (uuid.UUID, error)
	AddStamp(ctx context.Context, messageId uuid.UUID, stampID uuid.UUID, count int) error
	GetStampIdByName(ctx context.Context, name string) (uuid.UUID, error)
	GetAllUserIds(ctx context.Context) ([]uuid.UUID, error)
	GetUserInfo(ctx context.Context, userId uuid.UUID) (*model.TraqUser, error)

	JoinChannel(ctx context.Context, channelId uuid.UUID) error
	LeaveChannel(ctx context.Context, channelId uuid.UUID) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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