http

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConn

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

func New

func New(serviceName string, handler *consul.Client, conf *consul.Config) *ClientConn

func (*ClientConn) Execute

func (m *ClientConn) Execute(request *Request) (*resty.Response, error)

func (*ClientConn) GetAddress

func (m *ClientConn) GetAddress() (string, error)

type Request

type Request struct {
	Scheme string // ["http","https"]
	Method string // http.MethodXXX
	Path   string // service path
	Option func(*resty.Request)
}

Jump to

Keyboard shortcuts

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