usecase

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExportLogsOption

type ExportLogsOption func(opt *exportLogsOptions) error

func WithLimit

func WithLimit(limit string) ExportLogsOption

func WithQuery

func WithQuery(q string) ExportLogsOption

func WithToken

func WithToken(token string) ExportLogsOption

type Usecase

type Usecase struct {
	// contains filtered or unexported fields
}

func New

func New(clients *infra.Clients) *Usecase

func (*Usecase) DumpLogs

func (x *Usecase) DumpLogs(ctx *model.Context) error

func (*Usecase) ExportLogs

func (x *Usecase) ExportLogs(ctx *model.Context, options ...ExportLogsOption) (*model.ExportLogsResponse, error)

func (*Usecase) ImportLogs

func (x *Usecase) ImportLogs(ctx *model.Context) error

func (*Usecase) LoadCommands

func (x *Usecase) LoadCommands(ctx *model.Context, filePath string) (map[string]*model.Command, error)

func (*Usecase) OpenBrowser

func (x *Usecase) OpenBrowser(uri *url.URL) error

Jump to

Keyboard shortcuts

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