gomibako

package
v0.0.0-...-d85a200 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2016 License: MIT Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gomibako

type Gomibako struct {
	Key GomibakoKey
	// contains filtered or unexported fields
}

func (*Gomibako) Requests

func (g *Gomibako) Requests() []*GomibakoRequest

type GomibakoKey

type GomibakoKey string

type GomibakoRepository

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

func NewGomibakoRepository

func NewGomibakoRepository() *GomibakoRepository

func (*GomibakoRepository) AddGomibako

func (gr *GomibakoRepository) AddGomibako() (*Gomibako, error)

func (*GomibakoRepository) AddRequest

func (gr *GomibakoRepository) AddRequest(greq *GomibakoRequest) error

func (*GomibakoRepository) Get

func (gr *GomibakoRepository) Get(key GomibakoKey) (*Gomibako, error)

func (*GomibakoRepository) GetWithCh

func (gr *GomibakoRepository) GetWithCh(key GomibakoKey) (*Gomibako, chan *GomibakoRequest, error)

func (*GomibakoRepository) Release

func (gr *GomibakoRepository) Release(key GomibakoKey, ch chan *GomibakoRequest) error

func (*GomibakoRepository) RunBroker

func (gr *GomibakoRepository) RunBroker()

func (*GomibakoRepository) RunTruncater

func (gr *GomibakoRepository) RunTruncater()

func (*GomibakoRepository) Truncate

func (gr *GomibakoRepository) Truncate()

type GomibakoRequest

type GomibakoRequest struct {
	Key           GomibakoKey
	Timestamp     time.Time
	Method        string
	URL           *url.URL
	Headers       http.Header
	Body          []byte
	ContentLength int
}

Jump to

Keyboard shortcuts

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