api

package
v0.0.0-...-f2f7e87 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 13 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 {
	BaseURL     string
	RestyClient *resty.Client
}

func GetNewClient

func GetNewClient(baseURL string, token string) *Client

func (*Client) DisableSSLVerification

func (client *Client) DisableSSLVerification()

func (*Client) GetAnchor

func (client *Client) GetAnchor(anchorID string) (*woleetapi.Anchor, error)

func (*Client) GetAnchors

func (client *Client) GetAnchors(page int, size int, direction string, sort string) (*woleetapi.Anchors, error)

func (*Client) GetReceipt

func (client *Client) GetReceipt(anchorID string) ([]byte, error)

func (*Client) GetReceiptToFile

func (client *Client) GetReceiptToFile(anchorID string, outputPath string) error

func (*Client) GetServerConfig

func (client *Client) GetServerConfig() (*idserver.ConfigDisco, error)

func (*Client) GetSignature

func (client *Client) GetSignature(hashToSign string, pubKey string, integratedSignature bool) (*idserver.SignatureResult, error)

func (*Client) GetUser

func (client *Client) GetUser() (*idserver.UserDisco, error)

func (*Client) GetUserDiscoFromPubkey

func (client *Client) GetUserDiscoFromPubkey(pubKey string) (*idserver.UserDisco, error)

func (*Client) ListKeysFromUserID

func (client *Client) ListKeysFromUserID(userID string) (*[]idserver.KeyGet, error)

func (*Client) PostAnchor

func (client *Client) PostAnchor(anchor *woleetapi.Anchor) (*woleetapi.Anchor, error)

Jump to

Keyboard shortcuts

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