hungryapi

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 7 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(ctx context.Context, bridge string) (err error)

func (*Client) GetAppService

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

func (*Client) GetServerTime

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

func (*Client) RegisterAppService

func (cli *Client) RegisterAppService(
	ctx context.Context,
	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