socks

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UClient

type UClient struct {
	*USocket
	Client *http.Client
	// contains filtered or unexported fields
}

func NewUClient

func NewUClient(name string) (uc *UClient)

func (*UClient) GetResp

func (that *UClient) GetResp(route string, params map[string]string) (string, error)

type UServer

type UServer struct {
	*USocket
	Engine *gin.Engine
}

func NewUServer

func NewUServer(name string) (us *UServer)

func (*UServer) AddHandler

func (that *UServer) AddHandler(route string, handler func(c *gin.Context))

func (*UServer) Start

func (that *UServer) Start() (err error)

type USocket

type USocket struct {
	Name string
	Path string
}

func (*USocket) CheckSock

func (that *USocket) CheckSock()

func (*USocket) SetSock

func (that *USocket) SetSock(name string)

Jump to

Keyboard shortcuts

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