server

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2025 License: BSD-3-Clause Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CMD = &cobra.Command{
	Use:   "server",
	Short: "start a grpc server",
	Run: func(cmd *cobra.Command, args []string) {
		Main(caCertPath, serverCertPath, serverKeyPath)
	},
}
View Source
var MODEL_MODEL = &Model{
	Id: "Model",
}
View Source
var MODEL_MUTATION = &Model{
	Id: "Mutation",
}
View Source
var MODEL_REACTOR = &Model{
	Id: "Reactor",
}

Functions

func DeserializeStore added in v0.0.10

func DeserializeStore(b []byte, doc *openapi.Document) error

func Main

func Main(caCertPath, serverCertPath, serverKeyPath string)

func Mutate added in v0.0.10

func Mutate(val map[string]interface{}, model *Model, mut *openapi.Mutations) (interface{}, error)

func PrometheusMiddleware added in v0.0.13

func PrometheusMiddleware(next echo.HandlerFunc) echo.HandlerFunc

PrometheusMiddleware records HTTP request metrics

func SerializeStore added in v0.0.10

func SerializeStore(doc *openapi.Document) ([]byte, error)

func TracingMiddleware added in v0.0.10

func TracingMiddleware(next echo.HandlerFunc) echo.HandlerFunc

TracingMiddleware adds OpenTelemetry tracing to Echo requests

Types

type Binder added in v0.0.9

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

func (*Binder) Bind added in v0.0.9

func (cb *Binder) Bind(i interface{}, c echo.Context) error

type Model added in v0.0.9

type Model struct {
	Id     string
	Schema *yema.Type
	Index  map[string]string
}

Jump to

Keyboard shortcuts

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