gndservice

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const BASEPATH = "/api/v1"

Variables

This section is empty.

Functions

func NewResultMessage

func NewResultMessage(ctx *gin.Context, status int, err error)

Types

type Controller added in v2.1.0

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

func NewController

func NewController(addr, extAddr string, tlsConfig *tls.Config, gnd *gnd.GND) (*Controller, error)

func (*Controller) GracefulStop added in v2.1.0

func (ctrl *Controller) GracefulStop()

func (*Controller) Init added in v2.1.0

func (ctrl *Controller) Init(tlsConfig *tls.Config) error

func (*Controller) Start added in v2.1.0

func (ctrl *Controller) Start(wg *sync.WaitGroup)

func (*Controller) Stop added in v2.1.0

func (ctrl *Controller) Stop()

type HTTPResultMessage

type HTTPResultMessage struct {
	Code    int    `json:"code" example:"400"`
	Message string `json:"message" example:"status bad request"`
}

type ShutdownService

type ShutdownService interface {
	Stop()
	GracefulStop()
}

func Startup

func Startup(addr, extAddr string, tlsConfig *tls.Config, gnd *gnd.GND, wg *sync.WaitGroup, log *logging.Logger) (ShutdownService, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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