client

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(attachment clientconfig.AttachmentConfig) (*Client, error)

func (*Client) GetDM

func (c *Client) GetDM(ctx context.Context, dmID string) (protocol.DirectConversation, error)

func (*Client) GetRoom

func (c *Client) GetRoom(ctx context.Context, roomID string) (protocol.Room, error)

func (*Client) ListDMMessages

func (c *Client) ListDMMessages(ctx context.Context, dmID string, page protocol.PageRequest) (protocol.MessagePage, error)

func (*Client) ListDMs

func (*Client) ListRoomMessages

func (c *Client) ListRoomMessages(ctx context.Context, roomID string, page protocol.PageRequest) (protocol.MessagePage, error)

func (*Client) ListRooms

func (c *Client) ListRooms(ctx context.Context) (protocol.RoomPage, error)

func (*Client) RegisterAgent

func (c *Client) RegisterAgent(
	ctx context.Context,
	request protocol.RegisterAgentRequest,
) (protocol.AgentRegistration, error)

func (*Client) SendMessage

Jump to

Keyboard shortcuts

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