hungryapi

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const HungryDirectURLTemplate = "https://%s.nodes.%s.bridges.%s/%s/"
View Source
const HungryURLTemplate = "https://lb.nodes.%s.bridges.%s/%s"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*mautrix.Client
	Username string
}

func NewClient

func NewClient(baseDomain, clusterID, username, accessToken string) *Client

func (*Client) DeleteAppService

func (cli *Client) DeleteAppService(bridge string) (err error)

func (*Client) GetAppService

func (cli *Client) GetAppService(bridge string) (resp appservice.Registration, err error)

func (*Client) GetServerTime

func (cli *Client) GetServerTime() (resp time.Time, precision time.Duration, err error)

func (*Client) RegisterAppService

func (cli *Client) RegisterAppService(
	bridge string,
	req ReqRegisterAppService,
) (resp appservice.Registration, err error)

type ReqRegisterAppService

type ReqRegisterAppService struct {
	Address string `json:"address,omitempty"`
	Push    bool   `json:"push,omitempty"`
}

Jump to

Keyboard shortcuts

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