protocol

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCService

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

GRPCService grpc服务

func NewGRPCService

func NewGRPCService() *GRPCService

NewGRPCService todo

func (*GRPCService) Start

func (s *GRPCService) Start()

Start 启动GRPC服务

func (*GRPCService) Stop

func (s *GRPCService) Stop() error

Stop 启动GRPC服务

type GinHTTPService

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

HTTPService http服务

func NewGinHTTPService

func NewGinHTTPService() *GinHTTPService

NewHTTPService 构建函数

func (*GinHTTPService) PathPrefix

func (s *GinHTTPService) PathPrefix() string

func (*GinHTTPService) Start

func (s *GinHTTPService) Start() error

Start 启动服务

func (*GinHTTPService) Stop

func (s *GinHTTPService) Stop() error

Stop 停止server

type GoRestfulHTTPService

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

HTTPService http服务

func NewGoRestfulHTTPService

func NewGoRestfulHTTPService() *GoRestfulHTTPService

NewHTTPService 构建函数

func (*GoRestfulHTTPService) PathPrefix

func (s *GoRestfulHTTPService) PathPrefix() string

func (*GoRestfulHTTPService) Start

func (s *GoRestfulHTTPService) Start() error

Start 启动服务

func (*GoRestfulHTTPService) Stop

func (s *GoRestfulHTTPService) Stop() error

Stop 停止server

type HTTPService

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

HTTPService http服务

func NewHTTPService

func NewHTTPService() *HTTPService

NewHTTPService 构建函数

func (*HTTPService) PathPrefix

func (s *HTTPService) PathPrefix() string

func (*HTTPService) Start

func (s *HTTPService) Start() error

Start 启动服务

func (*HTTPService) Stop

func (s *HTTPService) Stop() error

Stop 停止server

type HertzHTTPService

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

HertzHTTPService hertz 服务

func (*HertzHTTPService) PathPrefix

func (s *HertzHTTPService) PathPrefix() string

func (*HertzHTTPService) Start

func (s *HertzHTTPService) Start() error

Start 启动服务

func (*HertzHTTPService) Stop

func (s *HertzHTTPService) Stop() error

Stop 停止server

Jump to

Keyboard shortcuts

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