Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("metadata not found")
)
errors
Functions ¶
This section is empty.
Types ¶
type FactoryParams ¶
type FactoryParams struct { Sourcify *SourcifyConfig FS *FileSystemConfig }
FactoryParams -
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
FileSystem -
type FileSystemConfig ¶
type FileSystemConfig struct {
Dir string `yaml:"dir" validate:"required,dir"`
}
FileSystemConfig -
type Source ¶
type Source interface { Get(ctx context.Context, contract string) ([]byte, error) List(ctx context.Context) ([]string, error) }
Source -
type Sourcify ¶
type Sourcify struct {
// contains filtered or unexported fields
}
Sourcify -
type SourcifyConfig ¶
type SourcifyConfig struct { BaseURL string `yaml:"base_url" validate:"required,url"` Timeout int `yaml:"timeout" validate:"required,min=0"` ChainID uint64 `yaml:"chain_id" validate:"required,min=1"` }
SourcifyConfig -
Click to show internal directories.
Click to hide internal directories.