Documentation ¶
Index ¶
- Variables
- func AsStatusError(err error) error
- func NewGatewayService(name string, port, offset int, routes gin.IRoutes, paths []string, ...) *gatewayService
- func NewGrpcService(port, offset int, opts []grpc.ServerOption, faults *faults.Set, ...) *grpcServer
- func StreamFaultInjector(s *faults.Set) grpc.StreamServerInterceptor
- func UnaryFaultInjector(s *faults.Set) grpc.UnaryServerInterceptor
- func WrapError(err error, format string, args ...interface{}) error
- type GrpcInitializer
Constants ¶
This section is empty.
Variables ¶
View Source
var SwaggerFS embed.FS
Functions ¶
func AsStatusError ¶ added in v0.13.0
func NewGatewayService ¶ added in v0.13.0
func NewGrpcService ¶ added in v0.13.0
func NewGrpcService( port, offset int, opts []grpc.ServerOption, faults *faults.Set, initializers ...GrpcInitializer, ) *grpcServer
func StreamFaultInjector ¶ added in v0.13.0
func StreamFaultInjector(s *faults.Set) grpc.StreamServerInterceptor
func UnaryFaultInjector ¶ added in v0.13.0
func UnaryFaultInjector(s *faults.Set) grpc.UnaryServerInterceptor
func WrapError ¶
workaround for grpc not supporting error unwrapping. if err seems to be a grpc status error, returns a new error with the same code & details, but a wrapped description. Otherwise wraps err normally. upstream: https://github.com/grpc/grpc-go/issues/2934
Types ¶
Click to show internal directories.
Click to hide internal directories.