hungryapi

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

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, homeserverURL, 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"`
	SelfHosted bool   `json:"self_hosted"`
}

Jump to

Keyboard shortcuts

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