censys

package
v0.0.0-...-c8fa0a4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	API *http.Client
	Cfg *config.AppConfig
	Idx *redisearch.Client
	Log *logrus.Entry
}

func NewClient

func NewClient() *Client

func (*Client) Auth

func (c *Client) Auth(req *http.Request) *http.Request

func (*Client) Err

func (c *Client) Err(res *http.Response) error

func (*Client) NewAPIRequest

func (c *Client) NewAPIRequest(ctx context.Context, method, path string, payload io.Reader) (*http.Request, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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