httpea

package
v0.0.0-...-552f7d1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Http

func Http()

Types

type Foo

type Foo struct {
	Bar           string
	Int           int
	Pointer       *int
	Name          string    `fake:"{firstname}"`  // Any available function all lowercase
	Sentence      string    `fake:"{sentence:3}"` // Can call with parameters
	RandStr       string    `fake:"{randomstring:[hello,world]}"`
	Number        string    `fake:"{number:1,10}"`       // Comma separated for multiple values
	Regex         string    `fake:"{regex:[abcdef]{5}}"` // Generate string from regex
	Skip          *string   `fake:"skip"`                // Set to "skip" to not generate data for
	Created       time.Time // Can take in a fake tag as well as a format tag
	CreatedFormat time.Time `fake:"{year}-{month}-{day}" format:"2006-01-02"`
}

type Server

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

func New

func New(addr string) *Server

func (*Server) Run

func (s *Server) Run()

Jump to

Keyboard shortcuts

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