server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthHandler

func HealthHandler(c *gin.Context)

func RegisterRoutes

func RegisterRoutes(router *gin.Engine)

func RootHandler

func RootHandler(c *gin.Context)

Types

type Option

type Option func(*Server)

func WithServerAddress

func WithServerAddress(address string) Option

type PodName

type PodName struct {
	Host string `json:"host"`
}

type Server

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

func New

func New(ctx context.Context, log *zap.Logger, handler *gin.Engine, opts ...Option) (*Server, error)

func (*Server) Serve

func (s *Server) Serve() error

func (*Server) Stop

func (s *Server) Stop() error

Jump to

Keyboard shortcuts

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