v1alpha

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VERSION             = "v1alpha"
	PUBLIC_GROUP        = "metadata"
	AUTHENTICATED_GROUP = "manifest"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func NewAPI

func NewAPI(
	cache cache.ICache,
	resolver resolver.IResolver,
	transformers *transformers.Transformers,
	repository repository.UserRepository,
	hooks hooks.HookManager,
) API

func (API) Create

func (a API) Create(c echo.Context) error

func (API) Get

func (a API) Get(c echo.Context) error

func (API) GetMetadata

func (a API) GetMetadata(c echo.Context) error

func (API) List

func (a API) List(c echo.Context) error

func (API) Refresh

func (a API) Refresh(c echo.Context) error

func (API) Register

func (a API) Register(g *echo.Group)

func (API) Update

func (a API) Update(c echo.Context) error

type Config

type Config struct {
	Freeze       bool           `json:"freeze"`
	RefreshAfter utils.Duration `json:"refreshAfter"`
	Alias        string         `json:"alias"`
}

type DynamicItem

type DynamicItem struct {
	Target string      `json:"target"`
	Type   string      `json:"type"`
	Spec   interface{} `json:"spec"`
}

type Manifest

type Manifest struct {
	Version      string                         `json:"version"`
	Owner        string                         `json:"owner"`
	Contract     string                         `json:"contract"`
	ChainID      int64                          `json:"chainId"`
	Transformers []transformers.BaseTransformer `json:"transformers"`
	Config       Config                         `json:"config"`
	Hooks        []hooks.Hook                   `json:"hooks"`
}

func (Manifest) ValidVersion

func (m Manifest) ValidVersion(version string) bool

type ManifestList

type ManifestList struct {
	Address string `json:"address"`
	ChainId int64  `json:"chainId"`
	Alias   string `json:"alias"`
}

type MetadataResult

type MetadataResult struct {
	Url string `json:"url"`
}

Jump to

Keyboard shortcuts

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