v1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHealthzServer

func NewHealthzServer() grpc_health_v1.HealthServer

NewHealthzServer creates ToDo service

func NewToDoServiceServer

func NewToDoServiceServer(db *sql.DB) v1.ToDoServiceServer

NewToDoServiceServer creates ToDo service

Types

type HealthImpl

type HealthImpl struct{}

HealthImpl grpc health

func (*HealthImpl) Check

Check 实现健康检查接口,这里直接返回健康状态,这里也可以有更复杂的健康检查策略,比如根据服务器负载来返回

func (*HealthImpl) Watch

Watch watch nil

Jump to

Keyboard shortcuts

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