Documentation
¶
Index ¶
- func GenerateId() string
- func GetLocalIp() string
- func HttpDownloadFile(ctx context.Context, fileURL string, proxyURL ...string) []byte
- func HttpGet(ctx context.Context, url string, header map[string]string, data g.Map, ...) error
- func HttpPost(ctx context.Context, url string, header map[string]string, ...) error
- func HttpPostJson(ctx context.Context, url string, header map[string]string, ...) error
- func SSEServer(ctx context.Context, data any) error
- func ToMap[T any, K int | string](arr []T, fn func(T) K) map[K]T
- func Unique[T IntInterface | string](data []T) []T
- type IntInterface
- type RoundRobin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateId ¶
func GenerateId() string
func GetLocalIp ¶ added in v0.2.0
func GetLocalIp() string
func HttpDownloadFile ¶
func HttpPostJson ¶
Types ¶
type IntInterface ¶
type RoundRobin ¶
type RoundRobin struct { CurIndex int // contains filtered or unexported fields }
func (*RoundRobin) Index ¶
func (r *RoundRobin) Index(lens int) (index int)
func (*RoundRobin) PickKey ¶
func (r *RoundRobin) PickKey(keys []string) string
Click to show internal directories.
Click to hide internal directories.