restserver

package
v0.0.0-...-f7b27bb Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RESTServer

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

func New

func New(psl *pastelclient.PslNode, cfg *common.Config, log *common.Logger) *RESTServer

func (*RESTServer) AddGetHandlers

func (s *RESTServer) AddGetHandlers(handlers map[string]interface{})

func (*RESTServer) GetAllIDTickets

func (s *RESTServer) GetAllIDTickets(c echo.Context) error

func (*RESTServer) GetAllMNIDTickets

func (s *RESTServer) GetAllMNIDTickets(c echo.Context) error

func (*RESTServer) GetIDTicket

func (s *RESTServer) GetIDTicket(c echo.Context) error

func (*RESTServer) GetMNIDTicket

func (s *RESTServer) GetMNIDTicket(c echo.Context) error

func (*RESTServer) GetMyIDTickets

func (s *RESTServer) GetMyIDTickets(c echo.Context) error

func (*RESTServer) GetMyMNIDTickets

func (s *RESTServer) GetMyMNIDTickets(c echo.Context) error

func (*RESTServer) GetPastelIDs

func (s *RESTServer) GetPastelIDs(c echo.Context) error

func (*RESTServer) Getinfo

func (s *RESTServer) Getinfo(c echo.Context) error

func (*RESTServer) Start

func (s *RESTServer) Start(ctx context.Context, app *common.Application) func() error

type RESTServerContext

type RESTServerContext struct {
	echo.Context
	AppCtx context.Context
}

Jump to

Keyboard shortcuts

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