service

package
v0.0.0-...-6ef7557 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package service NOTES

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service do all the data service's work

func NewService

func NewService(name string) *Service

NewService create a service instance.

func (*Service) HealthyHandler

func (s *Service) HealthyHandler(w http.ResponseWriter, r *http.Request)

HealthyHandler livenessProbe 健康检查

func (*Service) Healthz

func (s *Service) Healthz(w http.ResponseWriter, req *http.Request)

Healthz check whether the service is healthy.

func (*Service) ListenAndServeRest

func (s *Service) ListenAndServeRest() error

ListenAndServeRest listen and serve the restful server

func (*Service) ReadyHandler

func (s *Service) ReadyHandler(w http.ResponseWriter, r *http.Request)

ReadyHandler ReadinessProbe 健康检查

Jump to

Keyboard shortcuts

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