Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Host string
Port string
Mode string
AllowedHeaders []string
AllowedOutgoingHeaders map[string]string
ServiceDesc *grpc.ServiceDesc
RegisterRestHandlerServer func(ctx context.Context, mux *runtime.ServeMux, service any) error
// By default 4 mb
MaxRequestSize int
// By default 4 mb
MaxResponceSize int
// Cert == nil, then insecure credentials will be used, only for grpc
Cert *tls.Certificate
// Used for REST
TlsConfig *tls.Config
}
type Server ¶ added in v1.0.10
type Server struct {
AllowedHeaders []string
AllowedOutgoingHeaders map[string]string
// contains filtered or unexported fields
}
func (Server) GetDefaultOptions ¶ added in v1.0.10
func (s Server) GetDefaultOptions() *[]grpc.ServerOption
Click to show internal directories.
Click to hide internal directories.