dev

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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const MESSAGE_MSG = "message"
View Source
const STAMP_MSG = "stamp"

Variables

This section is empty.

Functions

This section is empty.

Types

type DevClient

type DevClient struct {
	// contains filtered or unexported fields
}

func NewDevClient

func NewDevClient(l *zap.Logger) *DevClient

func (*DevClient) AddStamp

func (dc *DevClient) AddStamp(ctx context.Context, messageId uuid.UUID, stampId uuid.UUID, count int) error

func (*DevClient) GetAllStamps

func (dc *DevClient) GetAllStamps(ctx context.Context) (map[string]uuid.UUID, error)

func (*DevClient) GetAllUserIds

func (dc *DevClient) GetAllUserIds(ctx context.Context) ([]uuid.UUID, error)

func (*DevClient) GetStampIdByName

func (dc *DevClient) GetStampIdByName(ctx context.Context, name string) (uuid.UUID, error)

func (*DevClient) GetUserInfo

func (dc *DevClient) GetUserInfo(ctx context.Context, userId uuid.UUID) (*model.TraqUser, error)

func (*DevClient) JoinChannel

func (dc *DevClient) JoinChannel(ctx context.Context, channelId uuid.UUID) error

func (*DevClient) LeaveChannel

func (dc *DevClient) LeaveChannel(ctx context.Context, channelId uuid.UUID) error

func (*DevClient) SendMessage

func (dc *DevClient) SendMessage(ctx context.Context, channelId uuid.UUID, message string, embed bool) (uuid.UUID, error)

Jump to

Keyboard shortcuts

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