Documentation ¶
Index ¶
- func PushEntries(feed *model.Feed, entries model.Entries, ...) error
- type Client
- func (c *Client) DiscoverEndpoints() (*DiscoveryEndpointResponse, error)
- func (c *Client) Login(homeServerURL, matrixUsername, matrixPassword string) (*LoginResponse, error)
- func (c *Client) SendFormattedTextMessage(homeServerURL, accessToken, roomID, textMessage, formattedMessage string) (*RoomEventResponse, error)
- type DiscoveryEndpointResponse
- type HomeServerInformation
- type IdentityServerInformation
- type LoginRequest
- type LoginResponse
- type RoomEventResponse
- type TextMessageEventRequest
- type UserIdentifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶ added in v2.0.48
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DiscoverEndpoints ¶ added in v2.0.48
func (c *Client) DiscoverEndpoints() (*DiscoveryEndpointResponse, error)
Specs: https://spec.matrix.org/v1.8/client-server-api/#getwell-knownmatrixclient
func (*Client) Login ¶ added in v2.0.48
func (c *Client) Login(homeServerURL, matrixUsername, matrixPassword string) (*LoginResponse, error)
Specs https://spec.matrix.org/v1.8/client-server-api/#post_matrixclientv3login
func (*Client) SendFormattedTextMessage ¶ added in v2.0.48
func (c *Client) SendFormattedTextMessage(homeServerURL, accessToken, roomID, textMessage, formattedMessage string) (*RoomEventResponse, error)
Specs https://spec.matrix.org/v1.8/client-server-api/#put_matrixclientv3roomsroomidsendeventtypetxnid
type DiscoveryEndpointResponse ¶ added in v2.0.48
type DiscoveryEndpointResponse struct { HomeServerInformation HomeServerInformation `json:"m.homeserver"` IdentityServerInformation IdentityServerInformation `json:"m.identity_server"` }
type HomeServerInformation ¶ added in v2.0.48
type HomeServerInformation struct {
BaseURL string `json:"base_url"`
}
type IdentityServerInformation ¶ added in v2.0.48
type IdentityServerInformation struct {
BaseURL string `json:"base_url"`
}
type LoginRequest ¶ added in v2.0.48
type LoginRequest struct { Type string `json:"type"` Identifier UserIdentifier `json:"identifier"` Password string `json:"password"` }
type LoginResponse ¶ added in v2.0.48
type RoomEventResponse ¶ added in v2.0.48
type RoomEventResponse struct {
EventID string `json:"event_id"`
}
type TextMessageEventRequest ¶ added in v2.0.48
type UserIdentifier ¶ added in v2.0.48
Click to show internal directories.
Click to hide internal directories.