publishclient

package module
v0.0.0-...-932304b Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: MIT Imports: 13 Imported by: 3

Documentation

Index

Constants

View Source
const CName = "publish.client"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	app.Component
	ResolveUri(ctx context.Context, uri string) (publish *publishapi.Publish, err error)
	GetPublishStatus(ctx context.Context, spaceId, objectId string) (publish *publishapi.Publish, err error)
	Publish(ctx context.Context, req *publishapi.PublishRequest) (uploadUrl string, err error)
	UnPublish(ctx context.Context, req *publishapi.UnPublishRequest) (err error)
	ListPublishes(ctx context.Context, spaceId string) (publishes []*publishapi.Publish, err error)
	UploadDir(ctx context.Context, uploadUrl, dir string) (err error)
}

func New

func New() Client

type Config

type Config struct {
	Addrs []PublishServerAddr `yaml:"publishServerAddrs"`
}

type PublishServerAddr

type PublishServerAddr struct {
	PeerId string   `yaml:"peerId"`
	Addrs  []string `yaml:"addrs"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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