client

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 15 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	SetUserAgent(software, version string)
	RegisterHostRemap(host string, remap string, useHttps bool)
	Commit(ctx context.Context, domain, body string, response any, opts *Options) (*http.Response, error)
	GetEntity(ctx context.Context, domain, address string, opts *Options) (core.Entity, error)
	GetMessage(ctx context.Context, domain, id string, opts *Options) (core.Message, error)
	GetAssociation(ctx context.Context, domain, id string, opts *Options) (core.Association, error)
	GetProfile(ctx context.Context, domain, address string, opts *Options) (core.Profile, error)
	GetTimeline(ctx context.Context, domain, id string, opts *Options) (core.Timeline, error)
	GetChunks(ctx context.Context, domain string, timelines []string, queryTime time.Time, opts *Options) (map[string]core.Chunk, error)
	GetKey(ctx context.Context, domain, id string, opts *Options) ([]core.Key, error)
	GetDomain(ctx context.Context, domain string, opts *Options) (core.Domain, error)
	GetChunkItrs(ctx context.Context, domain string, timelines []string, epoch string, opts *Options) (map[string]string, error)
	GetChunkBodies(ctx context.Context, domain string, query map[string]string, opts *Options) (map[string]core.Chunk, error)
	GetRetracted(ctx context.Context, domain string, timelines []string, opts *Options) (map[string][]string, error)
}

func NewClient

func NewClient() Client

type Options

type Options struct {
	AuthToken string
}

Directories

Path Synopsis
Package mock_client is a generated GoMock package.
Package mock_client is a generated GoMock package.

Jump to

Keyboard shortcuts

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