grpc

package
v0.0.0-...-e647751 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: GPL-3.0 Imports: 8 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 {
	// contains filtered or unexported fields
}

Client is a feditools login grpc client.

func NewClient

func NewClient(address string, cred credentials.PerRPCCredentials) (*Client, error)

NewClient creates a new feditools login grpc client.

func (*Client) Close

func (c *Client) Close() error

Close closes the feditools login grpc client.

func (*Client) GetFediAccount

func (c *Client) GetFediAccount(ctx context.Context, id int64) (*proto.FediAccount, error)

GetFediAccount retrieves a federated account from the login server.

func (*Client) GetFediInstance

func (c *Client) GetFediInstance(ctx context.Context, id int64) (*proto.FediInstance, error)

GetFediInstance retrieves a federated account from the login server.

func (*Client) Ping

func (c *Client) Ping(ctx context.Context) (*proto.Pong, error)

Ping sends a request to the server and response with "pong".

Jump to

Keyboard shortcuts

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