Documentation
¶
Index ¶
- Variables
- func GenerateScrollQuery(index string, svcs []string, fr, to time.Time) map[string]interface{}
- func LoggerMiddleware(ctx *gin.Context)
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- func RunServer(addr string)
- func SetupESCli(esapi string)
- func URLJoin(paths ...string) (p string)
- type ComplexityRoot
- type Config
- type DateRange
- type DirectiveRoot
- type ESClient
- type ESDocu
- type Env
- type Pagination
- type QueryResolver
- type Resolver
- type ResolverRoot
- type ScrollHit
- type ScrollResp
- type Span
- type SpanDocu
- type SpanSvcInfo
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GenerateScrollQuery ¶
func LoggerMiddleware ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
func SetupESCli ¶
func SetupESCli(esapi string)
Types ¶
type ComplexityRoot ¶
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type ESClient ¶
type ESClient struct {
// contains filtered or unexported fields
}
func NewESClient ¶
type Env ¶ added in v0.0.4
type Env string
func (Env) MarshalGQL ¶ added in v0.0.4
func (*Env) UnmarshalGQL ¶ added in v0.0.4
type Pagination ¶
type QueryResolver ¶
type Resolver ¶
type Resolver struct{}
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
type ResolverRoot ¶
type ResolverRoot interface {
Query() QueryResolver
}
type ScrollResp ¶
type SpanSvcInfo ¶
type SpanSvcInfo struct {
ServiceName string `json:"serviceName"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.