protocol

package
v0.0.0-...-f4276bb Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Grpc

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

func NewGrpc

func NewGrpc() *Grpc

如果http 服务器使用哪个路由, 当做参数传递进来

func (*Grpc) Start

func (g *Grpc) Start() error

func (*Grpc) Stop

func (g *Grpc) Stop(ctx context.Context)

type Http

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

定义http server的一些属性

func NewHttp

func NewHttp() *Http

如果http 服务器使用哪个路由, 当做参数传递进来

func (*Http) PathPrefix

func (h *Http) PathPrefix() string

func (*Http) Start

func (h *Http) Start() error

启动

func (*Http) Stop

func (h *Http) Stop(ctx context.Context)

停止

Jump to

Keyboard shortcuts

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