service

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 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 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)

type Userbase

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

func NewUserbase

func NewUserbase() *Userbase

func (*Userbase) Delete

func (s *Userbase) Delete(ctx context.Context, api string, output any) error

func (*Userbase) Get

func (s *Userbase) Get(ctx context.Context, api string, output any) error

func (*Userbase) Patch

func (s *Userbase) Patch(ctx context.Context, api string, input, output any) error

func (*Userbase) Post

func (s *Userbase) Post(ctx context.Context, api string, input, output any) error

func (*Userbase) Stats

func (s *Userbase) Stats(ctx context.Context) (map[string]any, error)

Jump to

Keyboard shortcuts

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