Documentation ¶
Index ¶
- func LoadEnv(envPath ...string) error
- func LoadEnvFromString(env string) error
- type Config
- type GoApiBoot
- type Option
- func AppendHttpHandlers(handlers map[string]func(http.ResponseWriter, *http.Request)) Option
- func AppendStreamInterceptors(interceptors []grpc.StreamServerInterceptor) Option
- func AppendUnaryInterceptors(interceptors []grpc.UnaryServerInterceptor) Option
- func WithCorsConfig(corsConfig *cors.Cors) Option
- type WebProxy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadEnvFromString ¶ added in v0.1.41
Types ¶
type Config ¶ added in v0.1.39
type Config struct { CorsConfig *cors.Cors UnaryInterceptors []grpc.UnaryServerInterceptor StreamInterceptors []grpc.StreamServerInterceptor // Additional http handlers. All of the gRpc APIs will be exposed by default on http Rest for web. ExtraHttpHandlers map[string]func(http.ResponseWriter, *http.Request) }
type GoApiBoot ¶
func NewGoApiBoot ¶
type Option ¶ added in v0.1.39
type Option func(*Config)
func AppendHttpHandlers ¶ added in v0.1.39
func AppendStreamInterceptors ¶ added in v0.1.39
func AppendStreamInterceptors(interceptors []grpc.StreamServerInterceptor) Option
func AppendUnaryInterceptors ¶ added in v0.1.39
func AppendUnaryInterceptors(interceptors []grpc.UnaryServerInterceptor) Option
func WithCorsConfig ¶ added in v0.1.39
type WebProxy ¶ added in v0.1.34
type WebProxy struct {
// contains filtered or unexported fields
}
func GetWebProxy ¶ added in v0.1.34
Click to show internal directories.
Click to hide internal directories.