app

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: MPL-2.0 Imports: 11 Imported by: 0

README

应用介绍

提供了优雅的启动rpc服务的机制以及通过配置中心统一加载应用

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func App

func App(ra RpcApp, systemId string, conf configuration.Configuration)

func Daemon

func Daemon(handle func(), close func())

func OptApp

func OptApp(ra RpcApp, monitor bool, systemId string, conf configuration.Configuration) rpc

Types

type Health

type Health struct{}

Health struct

func (*Health) Check

Check does the health check and changes the status of the server based on weather the app is ready or not.

func (*Health) Watch

Watch is used by clients to receive updates when the service status changes. Watch only dummy implemented just to satisfy the interface.

type RpcApp

type RpcApp func(s *grpc.Server)

Jump to

Keyboard shortcuts

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