server

package
v0.0.0-...-ae89c11 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is server providers.

Functions

func JsonResponseEncoder

func JsonResponseEncoder(w http.ResponseWriter, r *http.Request, v interface{}) error

JsonResponseEncoder encodes the object to the HTTP response.

func NewGRPCServer

func NewGRPCServer() *grpc.Server

func NewHTTPServer

func NewHTTPServer(
	adminInterface *service.AdminInterface,
	logger log.Logger,
	authConfig *conf.Auth,
	bc *conf.Bootstrap,
	tp *tracesdk.TracerProvider,
) *http.Server

func NewWhiteListMatcher

func NewWhiteListMatcher() selector.MatchFunc

Types

type Res

type Res struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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