sfclient

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Query added in v1.3.3

type Query map[string]any

func (Query) Add added in v1.3.3

func (q Query) Add(key string, value any)

func (Query) AddMap added in v1.3.3

func (q Query) AddMap(m map[string]any)

func (Query) Encode added in v1.3.3

func (q Query) Encode() string

func (Query) ToStringMap added in v1.3.3

func (q Query) ToStringMap() map[string]string

type SFRequest

type SFRequest struct {
	Settings *sfsettings.Settings
	// contains filtered or unexported fields
}

func NewReqClient added in v1.3.3

func NewReqClient() *SFRequest

func (*SFRequest) ChangeLogDebug added in v1.3.3

func (s *SFRequest) ChangeLogDebug()

func (*SFRequest) DownloadCover added in v1.3.3

func (s *SFRequest) DownloadCover(coverUrl string) ([]byte, error)

func (*SFRequest) Get

func (s *SFRequest) Get(endURL string, params Query) (gjson.Result, error)

func (*SFRequest) GetWeb

func (s *SFRequest) GetWeb(endURL string, params Query) (gjson.Result, error)

func (*SFRequest) Post

func (s *SFRequest) Post(endURL string, params Query) (*resty.Response, error)

func (*SFRequest) PostWeb added in v1.3.3

func (s *SFRequest) PostWeb(endURL string, params Query) (gjson.Result, error)

func (*SFRequest) SetAuth added in v1.3.3

func (s *SFRequest) SetAuth(username string, password string)

func (*SFRequest) SetProxy added in v1.3.3

func (s *SFRequest) SetProxy(proxy string)

func (*SFRequest) SetRetryCount added in v1.3.3

func (s *SFRequest) SetRetryCount(retryCount int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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