Versions in this module Expand all Collapse all v0 v0.1.0 Jul 25, 2023 Changes in this version + var CORSAllowAll = flag.Bool("cors_allow_all", true, "Set CORS headers to allow all requests?") + var GRPCPort = flag.Int("grpc_port", 2020, "Port of a gRPC listener.") + var GatewayPort = flag.Int("grpc_gateway_port", 8080, "Port of a gRPC gateway instance.") + var HTTPPort = flag.Int("http_port", 8888, "Port of a HTTP listener.") + var ShutdownWait = flag.Duration("shutdown_wait", 15 * time.Second, ...) + var SlowReplies = flag.Bool("slow_replies", false, "Make all requests take an extra second.") + var StaticDir = flag.String("static_dir", "./frontend/build", "Directory to serve static files from.") + func ServerValidationUnaryInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (resp interface{}, err error) + type ApoxyServer struct + Context context.Context + GRPC *grpc.Server + Gateway *runtime.ServeMux + GwSrv *http.Server + Mux *http.ServeMux + Srv *http.Server + func NewApoxyServer(opts ...ServerOption) *ApoxyServer + func (s *ApoxyServer) Run() + func (s *ApoxyServer) Shutdown() + type GatewayHandlerFn func(context.Context, *runtime.ServeMux, string, []grpc.DialOption) error + type ServerOption func(*serverOptions) + func WithHandlers(handlers ...GatewayHandlerFn) ServerOption + func WithPassedHeader(key string) ServerOption + type Validator interface + Validate func() error