gqlclient

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 31, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConnect = errors.New("failed to connect")
View Source
var ErrConnectionEnd = errors.New("connection end")

Functions

This section is empty.

Types

type Task

type Task struct {
	Err error
	// contains filtered or unexported fields
}

func (*Task) Cmd

func (t *Task) Cmd() string

func (*Task) IsCmd

func (t *Task) IsCmd() bool

func (*Task) IsDownload

func (t *Task) IsDownload() bool

func (*Task) IsUpload added in v0.1.2

func (t *Task) IsUpload() bool

type UseCase added in v0.1.2

type UseCase struct {
	LogWriter io.Writer
	// contains filtered or unexported fields
}

func New

func New(config *conf.Config, li *lib.Lib) *UseCase

func (*UseCase) Cmd added in v0.1.2

func (u *UseCase) Cmd(ctx context.Context, task Task) error

func (*UseCase) Completed added in v0.1.2

func (u *UseCase) Completed(ctx context.Context) error

func (*UseCase) Connect added in v0.1.2

func (u *UseCase) Connect(ctx context.Context) (context.Context, error)

func (*UseCase) DownloadAssets added in v0.1.2

func (u *UseCase) DownloadAssets(ctx context.Context) error

func (*UseCase) Info added in v0.1.3

func (u *UseCase) Info(ctx context.Context, format string, a ...any)

func (*UseCase) InfoE added in v0.1.3

func (u *UseCase) InfoE(ctx context.Context, err error)

func (*UseCase) SubscribeTask added in v0.1.2

func (u *UseCase) SubscribeTask(ctx context.Context) iter.Seq[Task]

func (*UseCase) UploadAssets added in v0.1.2

func (u *UseCase) UploadAssets(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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