Back to godoc.org

Package api

v1.17.6-0...-538c42b
Latest Go to latest

The latest major version is .

Published: Jul 10, 2020 | License: Apache-2.0 | Module: github.com/SecurityInsanity/matterbridge

Index

func New

func New(cfg *bridge.Config) bridge.Bridger

type API

type API struct {
	Messages ring.Ring
	sync.RWMutex
	*bridge.Config
}

func (*API) Connect

func (b *API) Connect() error

func (*API) Disconnect

func (b *API) Disconnect() error

func (*API) JoinChannel

func (b *API) JoinChannel(channel config.ChannelInfo) error

func (*API) Send

func (b *API) Send(msg config.Message) (string, error)

type Message

type Message struct {
	Text     string `json:"text"`
	Username string `json:"username"`
	UserID   string `json:"userid"`
	Avatar   string `json:"avatar"`
	Gateway  string `json:"gateway"`
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier