Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsurePrefix ¶
EnsurePrefix ensures that the given input string starts with the provided prefix.
Types ¶
type Client ¶
type Client struct {
Message *Message
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(ctx context.Context, url, roomID, userID, token, username, password string) (*Client, error)
NewClient creates a new Matrix client with the given parameters and joins the specified room. It authenticates the user if the userID and token are not provided, and returns a Client struct that can be used to send messages to the room.
type Message ¶
type Message struct {
Opt MessageOptions
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.