Package clients

import "github.com/matrix-org/go-neb/clients"

Overview ▾

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.ServiceDB, cli *http.Client) *Clients

New makes a new collection of matrix clients

func (*Clients) Client

func (c *Clients) Client(userID string) (*matrix.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