Documentation ¶
Overview ¶
Package matrix allows interfacing with a matrix server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Matrix ¶
type Matrix struct {
// contains filtered or unexported fields
}
Matrix represents a matrix server.
func New ¶
New creates a new matrix server handle. It takes the homeserver url and the client token as an argument.
func (*Matrix) HTTP ¶
func (m *Matrix) HTTP(ctx context.Context, method, path string, request, response interface{}) (int, error)
HTTP performs a http exchange with the matrix server. It takes the http method, the path including queries and pointers to request and response payload as arguments. It returns the http status and io errors.
Click to show internal directories.
Click to hide internal directories.