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

package options

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

Index

Package Files

cors.go recommended.go serving.go

type CorsOptions Uses

type CorsOptions struct {
    Enable         bool
    OriginHost     string
    AllowSubdomain bool
}

func NewCORSOptions Uses

func NewCORSOptions() *CorsOptions

func (*CorsOptions) AddFlags Uses

func (o *CorsOptions) AddFlags(fs *pflag.FlagSet)

func (*CorsOptions) AddGoFlags Uses

func (o *CorsOptions) AddGoFlags(fs *flag.FlagSet)

func (*CorsOptions) ApplyTo Uses

func (o *CorsOptions) ApplyTo(cfg *server.Config) error

func (*CorsOptions) Validate Uses

func (o *CorsOptions) Validate() []error

type RecommendedOptions Uses

type RecommendedOptions struct {
    Cors          *CorsOptions
    SecureServing *SecureServingOptions
}

func NewRecommendedOptions Uses

func NewRecommendedOptions() *RecommendedOptions

func (*RecommendedOptions) AddFlags Uses

func (o *RecommendedOptions) AddFlags(fs *pflag.FlagSet)

func (*RecommendedOptions) AddGoFlags Uses

func (o *RecommendedOptions) AddGoFlags(fs *flag.FlagSet)

func (*RecommendedOptions) ApplyTo Uses

func (o *RecommendedOptions) ApplyTo(config *server.Config) error

func (*RecommendedOptions) Validate Uses

func (o *RecommendedOptions) Validate() []error

type SecureServingOptions Uses

type SecureServingOptions struct {
    SecureAddr    string
    PlaintextAddr string
    APIDomain     string
    CACertFile    string
    CertFile      string
    KeyFile       string
}

func NewSecureServingOptions Uses

func NewSecureServingOptions() *SecureServingOptions

func (*SecureServingOptions) AddFlags Uses

func (o *SecureServingOptions) AddFlags(fs *pflag.FlagSet)

func (*SecureServingOptions) AddGoFlags Uses

func (o *SecureServingOptions) AddGoFlags(fs *flag.FlagSet)

func (*SecureServingOptions) ApplyTo Uses

func (o *SecureServingOptions) ApplyTo(cfg *server.Config) error

func (*SecureServingOptions) Validate Uses

func (o *SecureServingOptions) Validate() []error

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