Documentation ¶
Index ¶
- func AddLoggerToCtxMiddleware(next http.Handler) http.Handler
- func LogRequestsMiddleware(next http.Handler) http.Handler
- type DefaultServer
- func (s *DefaultServer) AnalyzeDependencies(ctx context.Context, request gen.AnalyzeDependenciesRequestObject) (gen.AnalyzeDependenciesResponseObject, error)
- func (s *DefaultServer) HealthCheck(ctx context.Context, request gen.HealthCheckRequestObject) (gen.HealthCheckResponseObject, error)
- func (s *DefaultServer) RetrieveDependencies(ctx context.Context, request gen.RetrieveDependenciesRequestObject) (gen.RetrieveDependenciesResponseObject, error)
- type EntConnectedServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLoggerToCtxMiddleware ¶ added in v0.6.0
Adds the logger to the http request context
Types ¶
type DefaultServer ¶
type DefaultServer struct {
// contains filtered or unexported fields
}
DefaultServer implements the API, backed by the GraphQL Server
func NewDefaultServer ¶
func NewDefaultServer(gqlClient graphql.Client) *DefaultServer
func (*DefaultServer) AnalyzeDependencies ¶
func (s *DefaultServer) AnalyzeDependencies(ctx context.Context, request gen.AnalyzeDependenciesRequestObject) (gen.AnalyzeDependenciesResponseObject, error)
func (*DefaultServer) HealthCheck ¶
func (s *DefaultServer) HealthCheck(ctx context.Context, request gen.HealthCheckRequestObject) (gen.HealthCheckResponseObject, error)
func (*DefaultServer) RetrieveDependencies ¶
func (s *DefaultServer) RetrieveDependencies( ctx context.Context, request gen.RetrieveDependenciesRequestObject, ) (gen.RetrieveDependenciesResponseObject, error)
******** The endpoint handler ********
type EntConnectedServer ¶ added in v0.8.0
type EntConnectedServer struct { *DefaultServer // contains filtered or unexported fields }
EntConnectedServer implements the REST API interface, using by default the GrapQL API Server as a backend, but also allows overriding the default handlers to ones that directly use the ENT backend.
This is an experimental feature.
func NewEntConnectedServer ¶ added in v0.8.0
func NewEntConnectedServer(ent *ent.Client, gqlClient graphql.Client) *EntConnectedServer
Click to show internal directories.
Click to hide internal directories.