Documentation ¶ Index ¶ type Storage func NewStorage() *Storage func (s *Storage) Get(ctx context.Context, req *http.Request) (*http.Response, error) func (s *Storage) Put(ctx context.Context, resp *http.Response) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Storage ¶ type Storage struct { Map sync.Map } Implements the ghtransport.Storage interface via a sync.Map. func NewStorage ¶ func NewStorage() *Storage NewStorage returns a new, empty Storage. func (*Storage) Get ¶ func (s *Storage) Get(ctx context.Context, req *http.Request) (*http.Response, error) func (*Storage) Put ¶ func (s *Storage) Put(ctx context.Context, resp *http.Response) error Source Files ¶ View all Source files memory.go Click to show internal directories. Click to hide internal directories.