Documentation
¶
Index ¶
- type BoltStore
- func (s *BoltStore) Cleanup(maxAge time.Duration)
- func (s *BoltStore) Close() error
- func (s *BoltStore) Del(id string) error
- func (s *BoltStore) Get(id string) (*Paste, bool, error)
- func (s *BoltStore) GetIDByHash(hash string) (string, bool, error)
- func (s *BoltStore) Set(id, hash, content string, metadata map[string]interface{}) error
- type MemoryStore
- type Paste
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
func NewMemoryStore ¶
func NewMemoryStore() *MemoryStore
func (*MemoryStore) Del ¶
func (s *MemoryStore) Del(id string) error
func (*MemoryStore) GetIDByHash ¶
func (s *MemoryStore) GetIDByHash(hash string) (string, bool, error)
Click to show internal directories.
Click to hide internal directories.