Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CORSMiddleware ¶
func CORSMiddleware() gin.HandlerFunc
Types ¶
type BlockParams ¶
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
Click to show internal directories.
Click to hide internal directories.