model

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCServiceOptions

type GRPCServiceOptions struct {
	Host string `json:"host" yaml:"host"`
	Port int    `json:"port" yaml:"port"`
}

GRPCServiceOptions gRPC server options

type HTTPError

type HTTPError struct {
	Code    int    `json:"code" example:"400"`
	Message string `json:"message" example:"status bad request"`
}

HTTPError error response

type MetricsServiceOptions

type MetricsServiceOptions struct {
	Port int `json:"port" yaml:"port"`
}

MetricsServiceOptions metrics server options

type RestServiceOptions

type RestServiceOptions struct {
	Port           int    `json:"port" yaml:"port"`
	CAFile         string `json:"caFile" yaml:"caFile"`
	PrivateKeyFile string `json:"privateKetFile" yaml:"privateKeyFile"`
	PublicCertFile string `json:"publicCertFile" yaml:"publicCertFile"`
}

RestServiceOptions http server options

type StatusResponse

type StatusResponse struct {
	Message string `json:"message"`
}

StatusResponse status response

Jump to

Keyboard shortcuts

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