request

package
v0.0.0-...-cbea63e Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: Apache-2.0, MIT Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoHttpRequest

func DoHttpRequest(name string, host string, path string, method string, m map[string]string, val CustomValidationFunc) ([]byte, error)

func DoRabbitRequest

func DoRabbitRequest(name string, service string, endpoint string, b []byte, val CustomValidationFunc) ([]byte, error)

Types

type CustomRequstFunc

type CustomRequstFunc func(i interface{}, b []byte) ([]byte, error)

func (CustomRequstFunc) DoRequest

func (c CustomRequstFunc) DoRequest(name string, i interface{}, b []byte, val CustomValidationFunc) ([]byte, error)

type CustomValidationFunc

type CustomValidationFunc func(b []byte) bool

type HttpReq

type HttpReq struct {
	Host   string
	Path   string
	Method string
}

type RabbitReq

type RabbitReq struct {
	Service  string
	Endpoint string
}

Jump to

Keyboard shortcuts

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