Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func MustConvert ¶
func MustConvert(from, to interface{})
func NewJaegerTracer ¶
func NewRequest ¶
NewRequest returns a well configured *resty.Request opentracing.SpanContext will be injected into request header if exists
Types ¶
type GrpcApplication ¶
type GrpcApplication struct { Endpoint string `validate:"required"` GatewayAddr string `validate:"required"` AppName string `validate:"required"` AgentHostPort string RegisterGrpcServer func(srv *grpc.Server) error RegisterGateway func(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) error RegisterVars func() error }
func (*GrpcApplication) Validate ¶
func (a *GrpcApplication) Validate() error
type GrpcServer ¶
type GrpcServer struct {
// contains filtered or unexported fields
}
func NewGrpcServer ¶
func NewGrpcServer(app *GrpcApplication) *GrpcServer
func (*GrpcServer) Close ¶
func (s *GrpcServer) Close() error
func (*GrpcServer) Run ¶
func (s *GrpcServer) Run()
Click to show internal directories.
Click to hide internal directories.