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
- func WithSSL(ssl bool) Option
- type SSLManager
- 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) SSL bool }
type GoApiBoot ¶
type GoApiBoot struct { GrpcServer *grpc.Server WebServer *http.Server // contains filtered or unexported fields }
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 SSLManager ¶ added in v0.1.46
type SSLManager struct {
// contains filtered or unexported fields
}
func NewSSLManager ¶ added in v0.1.46
func NewSSLManager() *SSLManager
func (*SSLManager) DownloadCertificatesWithRetry ¶ added in v0.1.46
func (s *SSLManager) DownloadCertificatesWithRetry()
func (*SSLManager) RunAcmeChallengeListener ¶ added in v0.1.46
func (s *SSLManager) RunAcmeChallengeListener()
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.