k2

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

@Time : 2025/5/7 12:27 @Author : dongdongliu @File : k2 @Version: 1.0 @Software: GoLand

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

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

func NewAuthConfig

func NewAuthConfig(url, authKey string, client xhttp.IClient) *AuthConfig

func (*AuthConfig) GetConfig

func (x *AuthConfig) GetConfig(ctx context.Context) (map[string]string, error)

type NoAuthConfig

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

func NewNoAuthConfig

func NewNoAuthConfig(url string, client xhttp.IClient) *NoAuthConfig

func (*NoAuthConfig) GetConfig

func (x *NoAuthConfig) GetConfig(ctx context.Context) (map[string]string, error)

type Response

type Response struct {
	Code   uint32            `json:"code"`
	Msg    string            `json:"msg"`
	Reason string            `json:"reason"`
	Data   map[string]string `json:"data"`
}

Jump to

Keyboard shortcuts

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