server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

* Copyright (c) 2019. Baidu Inc. All Rights Reserved.

* Copyright (c) 2019. Baidu Inc. All Rights Reserved.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAuth           = errors.New("address has no authority")
	ErrSign           = errors.New("sign is error")
	ErrAddNetAndAdmin = errors.New("add net and netAdmin failed")
	ErrAddNode        = errors.New("add node failed")
)

Functions

func LogInterceptor

func LogInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

func Start

func Start(quit chan int)

启动服务, 然后阻塞等待系统的关停信号

Types

This section is empty.

Jump to

Keyboard shortcuts

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