grpc-go-addons: gomodules.xyz/grpc-go-addons/server Index | Files | Directories

package server

import "gomodules.xyz/grpc-go-addons/server"

Index

Package Files

config.go server.go

type Config Uses

type Config struct {
    SecureAddr         string
    PlaintextAddr      string
    APIDomain          string
    CACertFile         string
    CertFile           string
    KeyFile            string
    EnableCORS         bool
    CORSOriginHost     string
    CORSAllowSubdomain bool
    // contains filtered or unexported fields
}

func NewConfig Uses

func NewConfig() *Config

func (*Config) GRPCServerOption Uses

func (s *Config) GRPCServerOption(opt ...grpc.ServerOption)

func (*Config) GatewayMuxOption Uses

func (s *Config) GatewayMuxOption(opt ...gwrt.ServeMuxOption)

func (Config) New Uses

func (c Config) New() (*Server, error)

func (*Config) SetCORSRegistry Uses

func (s *Config) SetCORSRegistry(reg cors.PatternRegistry)

func (*Config) SetGRPCRegistry Uses

func (s *Config) SetGRPCRegistry(reg endpoints.GRPCRegistry)

func (*Config) SetProxyRegistry Uses

func (s *Config) SetProxyRegistry(reg endpoints.ProxyRegistry)

func (*Config) UseTLS Uses

func (s *Config) UseTLS() bool

type Server Uses

type Server struct {
    Config
}

func (*Server) NewGatewayMux Uses

func (s *Server) NewGatewayMux(l net.Listener, useTLS bool) *gwrt.ServeMux

func (*Server) Run Uses

func (s *Server) Run(stopCh <-chan struct{}) error

func (*Server) ServeHTTPS Uses

func (s *Server) ServeHTTPS()

Directories

PathSynopsis
options

Package server imports 14 packages (graph) and is imported by 3 packages. Updated 2019-07-13. Refresh now. Tools for package owners.