server

package
v0.0.0-...-8ddde9e Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is server providers.

Functions

func MiddlewareCors

func MiddlewareCors() middleware.Middleware

MiddlewareCors 设置跨域请求头

func NewGRPCServer

func NewGRPCServer(c *conf.Server, timeline *service.TimelineService, logger log.Logger) *grpc.Server

NewGRPCServer new a gRPC server.

func NewHTTPServer

func NewHTTPServer(c *conf.Server, timeline *service.TimelineService, logger log.Logger) *http.Server

NewHTTPServer new a HTTP server.

func NotFoundHandler

func NotFoundHandler(res nethttp.ResponseWriter, req *nethttp.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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