utils

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientIDtoReserved added in v0.3.2

func ClientIDtoReserved(clientID string) ([]int, string)

func GenSing added in v0.3.2

func GenSing(resStruct C.Response) (body []byte, err error)

func GenXray added in v0.3.2

func GenXray(resStruct C.Response) (body []byte, err error)

func GenerateKey

func GenerateKey() (string, string, error)

func GetTokenID

func GetTokenID(filePath string) (string, string)

func RandStringRunes

func RandStringRunes(n int, letterRunes []rune) string

func ReadConfig

func ReadConfig(filePath string) []byte

func SimplifyOutput added in v0.3.2

func SimplifyOutput(resStruct C.Response)

Types

type HTTPClient added in v0.3.2

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

func (*HTTPClient) Do added in v0.3.2

func (h *HTTPClient) Do(request *http.Request) (body []byte, err error)

func (*HTTPClient) HandleBody added in v0.3.2

func (h *HTTPClient) HandleBody()

type Request added in v0.3.2

type Request struct {
	Payload   []byte
	Token     string
	TeamToken string
	ID        string
	Action    string
}

func (Request) New added in v0.3.2

func (r Request) New() (request *http.Request, err error)

Jump to

Keyboard shortcuts

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