service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPicture added in v0.2.0

func GetPicture(ctx context.Context, imgUrl string) (string, io.ReadCloser, error)

Types

type APIHost added in v0.6.0

type APIHost string

func (APIHost) Delete added in v0.6.0

func (h APIHost) Delete(ctx context.Context, api string, output any) error

func (APIHost) Get added in v0.6.0

func (h APIHost) Get(ctx context.Context, api string, output any) error

func (APIHost) Patch added in v0.6.0

func (h APIHost) Patch(ctx context.Context, api string, input, output any) error

func (APIHost) Post added in v0.6.0

func (h APIHost) Post(ctx context.Context, api string, input, output any) error

func (APIHost) Put added in v0.6.0

func (h APIHost) Put(ctx context.Context, api string, input, output any) error

func (APIHost) Stats added in v0.6.0

func (h APIHost) Stats(ctx context.Context) (map[string]any, error)

type OSS added in v0.2.0

type OSS struct {
	UrlBase string
	Prefix  string
	// contains filtered or unexported fields
}

func NewOSS added in v0.2.0

func NewOSS() *OSS

func (*OSS) SavePicture added in v0.2.0

func (s *OSS) SavePicture(ctx context.Context, imgPath, imgUrl string) (string, error)

Jump to

Keyboard shortcuts

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