server

package
v0.0.0-...-ca35f81 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MIT Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DevHosts addr list
	DevHosts = []string{"localhost", "127.0.0.1", "::1"}
)

reference: https://golang.org/src/crypto/tls/generate_cert.go

Functions

func NewJaegerTracer

func NewJaegerTracer() (opentracing.Tracer, io.Closer, error)

NewJaegerTracer initialize opentracing

Types

type Composer

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

Composer all server management

func NewComposer

func NewComposer() *Composer

NewComposer create CopositeServer

func (*Composer) Serve

func (s *Composer) Serve(ctx context.Context)

Serve start serving

type GRPC

type GRPC struct {
	*grpc.Server
	// contains filtered or unexported fields
}

GRPC gRPC Server

func NewGRPC

func NewGRPC() (ret *GRPC)

NewGRPC create gRPC server

func (*GRPC) Serve

func (g *GRPC) Serve(ctx context.Context)

Serve start serving

type HTTP

type HTTP struct {
	*echo.Echo
	// contains filtered or unexported fields
}

HTTP HTTP Server

func NewHTTP

func NewHTTP(gsrv *grpc.Server) (hsrv *HTTP)

NewHTTP create HTTP server

func (*HTTP) Serve

func (h *HTTP) Serve(ctx context.Context)

Serve start serving

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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