Documentation ¶
Index ¶
- Constants
- type ApiConfig
- type ApiService
- func (as *ApiService) GetHotCollectionDetail(c echo.Context) error
- func (as *ApiService) GetHotCollectionList(c echo.Context) error
- func (as *ApiService) GetIndex(c echo.Context) error
- func (as *ApiService) GetLiveMintList(c echo.Context) error
- func (as *ApiService) GetMainToken(c echo.Context) error
- func (as *ApiService) GetNftByCollectionId(c echo.Context) error
- func (as *ApiService) GetNftById(c echo.Context) error
- func (as *ApiService) Start() error
- func (as *ApiService) Stop()
Constants ¶
View Source
const ( SelfServiceOK = 2000 SelfServiceError = 4000 SelfInvalidParams = 4001 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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()
Click to show internal directories.
Click to hide internal directories.