core

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InterceptorChain

func InterceptorChain() grpc.ServerOption

Types

type Config

type Config struct {

	// 是否需要服务注册
	IsNeedRegister bool

	// 服务注册中心
	Register register.Register
}

func DefaultConfig

func DefaultConfig() Config

DefaultConfig 默认配置

type Power

type Power struct {
	ServerName string
	Port       int
}

func (Power) NewServer

func (power Power) NewServer(config Config) *grpc.Server

NewServer 创建新的服务

func (*Power) Run

func (power *Power) Run()

Run 启动服务

Jump to

Keyboard shortcuts

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