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: 0

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