asset

package
v0.0.0-...-de69ced Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileStorage

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

func NewFileStorage

func NewFileStorage(dirpath string) (*FileStorage, error)

func (*FileStorage) Get

func (s *FileStorage) Get(id *big.Int) ([]byte, error)

func (*FileStorage) SetExtension

func (s *FileStorage) SetExtension(ext string)

type NoStorage

type NoStorage struct{}

func (NoStorage) Get

func (NoStorage) Get(*big.Int) ([]byte, error)

type Storage

type Storage interface {
	Get(id *big.Int) ([]byte, error)
}

Jump to

Keyboard shortcuts

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