servicebase

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

README

servicebase

a go service base that allows me to quickly demo

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start added in v0.0.3

func Start(svc *Service)

Types

type Option added in v0.0.3

type Option func(*Service)

func WithHealthProbe added in v0.0.3

func WithHealthProbe(healthProbe bool) Option

func WithPort added in v0.0.3

func WithPort(port int) Option

func WithVersion added in v0.0.3

func WithVersion(version int) Option

type Service

type Service struct {
	//public
	Name        string          `json:"Name"`
	Port        int             `json:"Port"`
	HealthProbe bool            `json:"HealthProbe"`
	ExitAppChan <-chan struct{} `json:"-"`
	GinEngine   *gin.Engine     `json:"-"`
	AppHealthz  bool            `json:"AppHealthz"`
	AppReadyz   bool            `json:"AppReadyz"`
	Version     int             `json:"Version"`
	// contains filtered or unexported fields
}

func New

func New(name string, options ...Option) (*Service, error)

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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