Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ServerModeOptions = map[ServerMode][]string{ ServerModeHTTP: {"", "http"}, ServerModeGRPC: {"grpc"}, ServerModeBoth: {"grpc+http", "both"}, }
Functions ¶
func ServerModeVar ¶
func ServerModeVar(flags *pflag.FlagSet, sm *ServerMode, name, usage string)
Types ¶
type Pair ¶
func (Pair) X509KeyPair ¶
func (p Pair) X509KeyPair() (tls.Certificate, error)
type Server ¶
type Server struct {
Hostname string
ListenHost string
ListenPort int
Mode ServerMode
PodName string
PodNamespace string
PodNode string
TLSAutogen bool
TLSCertPath string
TLSKeyPath string
Extensions result.Extensions
}
func (*Server) InstallExtension ¶
func (s *Server) InstallExtension(fn result.ExtensionFunc)
type ServerMode ¶
const ( ServerModeHTTP ServerMode = iota ServerModeGRPC ServerModeBoth )
Click to show internal directories.
Click to hide internal directories.