fLibHelper

package module
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 5 Imported by: 0

README

fLibHelper

A simple Go library for a certain f-service, providing basic functionality and API calls.

Documentation

Index

Constants

View Source
const (
	DefaultUserAgent   = "" /* 420-byte string literal not displayed */
	DefaultReqDataName = "\u0065\u0064\u0061\u0074\u0061"
)

Variables

View Source
var (
	DefaultOptions = &FLibOptions{
		UserAgent:   DefaultUserAgent,
		ReqDataName: DefaultReqDataName,
	}
)

Functions

This section is empty.

Types

type FLibClient

type FLibClient struct {
	PassString  string
	HostString  string
	UserAgent   string
	BaseUrl     string
	ReqDataName string
	HttpClient  *http.Client
}

func NewFLibClient

func NewFLibClient(pass string, config *FLibOptions) *FLibClient

func (*FLibClient) CollectGold

func (c *FLibClient) CollectGold(opt *ReqOptions) (string, error)

func (*FLibClient) LoadFP added in v1.0.3

func (c *FLibClient) LoadFP(opt *ReqOptions) (string, error)

type FLibOptions

type FLibOptions struct {
	HostString       string
	UserAgent        string
	BaseUrl          string
	ReqDataName      string
	CustomHttpClient *http.Client
}

type ReqOptions

type ReqOptions struct {
	ReqData      string
	ReqTotalData string
}

Jump to

Keyboard shortcuts

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