fetch

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(timeout time.Duration) *Client

func (*Client) Fetch

func (c *Client) Fetch(ctx context.Context, url string) (Response, error)

type Response

type Response struct {
	Body    []byte
	Headers http.Header
}

type SubscriptionInfo

type SubscriptionInfo struct {
	Used   int64
	Total  int64
	Expire int64
}

func ParseSubscriptionUserinfo

func ParseSubscriptionUserinfo(raw string) (SubscriptionInfo, bool)

Jump to

Keyboard shortcuts

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