rest

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: LGPL-2.1 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORSMiddleware

func CORSMiddleware() gin.HandlerFunc

Types

type BlockParams

type BlockParams struct {
	FromBlock string `json:"from_block"`
	ToBlock   string `json:"to_block"`
}

type BlockStat

type BlockStat struct {
	Events   int `json:"events"`
	Topics   int `json:"topics"`
	Messages int `json:"messages"`
}

type Flag

type Flag string

type RestResponse

type RestResponse struct {
	Status string      `json:"status"`
	Data   interface{} `json:"data"`
}

type RestService

type RestService struct {
	Ctx                    *context.Context
	Cfg                    *configs.MainConfiguration
	ClientHandshakeChannel *chan *entities.ClientHandshake
}

func NewRestService

func NewRestService(mainCtx *context.Context) *RestService

func (*RestService) Initialize

func (p *RestService) Initialize() *gin.Engine

Jump to

Keyboard shortcuts

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