ceres

package module
v0.0.0-...-04e6e7a Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

README

go-ceres

ceres是基于grpc的微服务框架

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetBanner

func SetBanner(banner string)

SetBanner 设置自定义 Banner 字符串

Types

type Engine

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

func New

func New(fns ...func() (func(), error)) (*Engine, error)

New 创建一个启动器

func (*Engine) GracefulStop

func (eng *Engine) GracefulStop(todo context.Context) error

GracefulStop 优雅地停止

func (*Engine) Job

func (eng *Engine) Job(job schedule.Job) (string, error)

Job 添加定时任务

func (*Engine) MustSetup

func (eng *Engine) MustSetup(fns ...func() (func(), error)) error

MustSetup 必须初始化

func (*Engine) Run

func (eng *Engine) Run() error

Run 运行

func (*Engine) Server

func (eng *Engine) Server(srv server.Server) error

Server 设置服务

func (*Engine) SetInit

func (eng *Engine) SetInit(fns ...func() error) *Engine

SetInit 设置启动项

func (*Engine) SetRegistry

func (eng *Engine) SetRegistry(registry registry.Registry)

SetRegistry 设置注册中心

func (*Engine) Stop

func (eng *Engine) Stop() (err error)

Stop 停止

Directories

Path Synopsis
auth
client
cmd
encoder/bufferpool
Package bufferpool houses zap's shared internal buffer pool.
Package bufferpool houses zap's shared internal buffer pool.
gin
source
store
test
utils

Jump to

Keyboard shortcuts

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