Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseRestController ¶
type BaseRestController interface { Listen(ctx context.Context, cancel context.CancelFunc, port string) ParseRestBody(ctx *gin.Context, input interface{}) error HandleRestError(ctx *gin.Context, err error) GetSpan(ctx *gin.Context) *opentracing.Span Handler(handler gin.HandlerFunc) gin.HandlerFunc Router() *gin.Engine Tracer() opentracing.Tracer Logger() *zap.Logger MC() metrics.Collector }
func NewRestController ¶
func NewRestController( tracer opentracing.Tracer, logger *zap.Logger, mc metrics.Collector, ) BaseRestController
Click to show internal directories.
Click to hide internal directories.