grpcServer

package
v0.0.0-...-63b2ac5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Xbootargs = new(BootArgs)
)

Functions

func MainServer

func MainServer()

Types

type BootArgs

type BootArgs struct {
	Hostname string
	Port     int
}

func (BootArgs) ExecFunc

func (boot BootArgs) ExecFunc() func()

func (*BootArgs) FlagDefine

func (boot *BootArgs) FlagDefine() func(flag *flag.FlagSet)

type TestDemoService

type TestDemoService struct {
}

func (TestDemoService) NotifyMsg

func (TestDemoService) NotifyMsg(context.Context, *hxrpc.Notify) (*hxrpc.NotifyResp, error)

git hook 可以通过grpc调用方式来获取提交数据信息.

func (TestDemoService) SayHello

func (TestDemoService) SayHello(ctx context.Context, req *hxrpc.HelloRequest) (*hxrpc.HelloResponse, error)

Jump to

Keyboard shortcuts

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