openapi

package
v0.0.0-...-d9430aa Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SelfServiceOK     = 2000
	SelfServiceError  = 4000
	SelfInvalidParams = 4001
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiConfig

type ApiConfig struct {
	ApiServicePort int
	Debug          bool
	Database       *db.Database
}

type ApiService

type ApiService struct {
	Ctx    context.Context
	Cfg    *ApiConfig
	Echo   *echo.Echo
	Cancel func()
	Wg     sync.WaitGroup
}

func NewApiService

func NewApiService(ctx context.Context, cfg *ApiConfig) (*ApiService, error)

func (*ApiService) GetHotCollectionDetail

func (as *ApiService) GetHotCollectionDetail(c echo.Context) error

func (*ApiService) GetHotCollectionList

func (as *ApiService) GetHotCollectionList(c echo.Context) error

func (*ApiService) GetIndex

func (as *ApiService) GetIndex(c echo.Context) error

func (*ApiService) GetLiveMintList

func (as *ApiService) GetLiveMintList(c echo.Context) error

func (*ApiService) GetMainToken

func (as *ApiService) GetMainToken(c echo.Context) error

func (*ApiService) GetNftByCollectionId

func (as *ApiService) GetNftByCollectionId(c echo.Context) error

func (*ApiService) GetNftById

func (as *ApiService) GetNftById(c echo.Context) error

func (*ApiService) Start

func (as *ApiService) Start() error

func (*ApiService) Stop

func (as *ApiService) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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