clients

package
v0.0.0-...-e61e643 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clients

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

A Clients is a collection of clients used for bot services.

func New

func New(db database.Storer, cli *http.Client) *Clients

New makes a new collection of matrix clients

func (*Clients) Client

func (c *Clients) Client(userID string) (*gomatrix.Client, error)

Client gets a client for the userID

func (*Clients) Start

func (c *Clients) Start() error

Start listening on client /sync streams

func (*Clients) Update

func (c *Clients) Update(config api.ClientConfig) (api.ClientConfig, error)

Update updates the config for a matrix client

Jump to

Keyboard shortcuts

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