service

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAccount

func RegisterAccount(i IAccount)

func RegisterLark

func RegisterLark(i ILark)

func RegisterShort

func RegisterShort(i IShort)

Types

type IAccount

type IAccount interface {
	Stat(ctx context.Context, in *model.AccountStatInput) (out *model.AccountStatOutput, err error)
}

func Account

func Account() IAccount

type ILark

type ILark interface {
	SendMessage(ctx context.Context, in *model.SendMessageInput) (out *model.SendMessageOutput, err error)
}

func Lark

func Lark() ILark

type IShort

type IShort interface {
	AssignTask(ctx context.Context) error
	AuditAssignTask(ctx context.Context) error
	ExecuteAudit(ctx context.Context)
	QueryShortAndGrabAudit(ctx context.Context)
	GrabImageAudit(ctx context.Context, shortURL *entity.ShortUrls) error
	ReportHashChange(ctx context.Context, shortAudit *entity.ShortAuditLog, basePath string) error
	AccessLog(ctx context.Context) error
	ShortAccessLogSummary(ctx context.Context) error
	GetShortCache(ctx context.Context, short string) (*entity.ShortUrls, error)
	GrabImage(ctx context.Context, shortURL *entity.ShortUrls) error
	Execute(ctx context.Context)
	RequestContent(ctx context.Context, url, fileName string) ([]byte, error)
	RequestStatusCode(ctx context.Context, url string) (int, error)
	DownloadFullScreenshot(ctx context.Context, url, fileName string) (err error)
}

func Short

func Short() IShort

Jump to

Keyboard shortcuts

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