client

package
v0.0.0-...-1eb5c16 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT 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 {
	APIRoot string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(apiRoot string, httpClient *http.Client) *Client

func (*Client) Follow

func (c *Client) Follow(ctx context.Context, actorDid string, targetDid string) error

func (*Client) GetFollowers

func (c *Client) GetFollowers(ctx context.Context, did string) ([]string, error)

func (*Client) GetFollowersNotFollowing

func (c *Client) GetFollowersNotFollowing(ctx context.Context, did string) ([]string, error)

func (*Client) Unfollow

func (c *Client) Unfollow(ctx context.Context, actorDid string, targetDid string) error

type DidsResponse

type DidsResponse struct {
	DIDs []string `json:"dids"`
}

type Follow

type Follow struct {
	ActorDid  string `json:"actor_did"`
	TargetDid string `json:"target_did"`
}

type Unfollow

type Unfollow struct {
	ActorDid  string `json:"actor_did"`
	TargetDid string `json:"target_did"`
}

Jump to

Keyboard shortcuts

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