Documentation ¶
Index ¶
Constants ¶
View Source
const GraphQlPanic application.ErrorIdentifier = `GraphQlPanic`
Variables ¶
This section is empty.
Functions ¶
func FromCommonErr ¶ added in v0.0.3
func FromCommonErr( ctx context.Context, error *application.CommonError, ) *gqlerror.Error
func FromValidationErr ¶ added in v0.0.3
func FromValidationErr( ctx context.Context, errors []application.ValidationError, ) *gqlerror.Error
Types ¶
type GraphQlServer ¶
type GraphQlServer struct {
// contains filtered or unexported fields
}
func NewGraphQLServer ¶
func NewGraphQLServer( config *ModuleConfig, logger application.Logger, es graphql.ExecutableSchema, ) *GraphQlServer
func (*GraphQlServer) ApiHandler ¶
func (f *GraphQlServer) ApiHandler() http.HandlerFunc
func (GraphQlServer) GetServer ¶
func (f GraphQlServer) GetServer() *handler.Server
func (*GraphQlServer) PlaygroundHandler ¶
func (f *GraphQlServer) PlaygroundHandler(title string, endpoint string) http.HandlerFunc
type ModuleConfig ¶
type ModuleConfig struct {
// contains filtered or unexported fields
}
func NewModuleConfig ¶
func NewModuleConfig() *ModuleConfig
func (*ModuleConfig) InitConfig ¶
func (s *ModuleConfig) InitConfig(config application.Config) error
func (*ModuleConfig) ModuleRoutes ¶
func (s *ModuleConfig) ModuleRoutes() []application.RouteInfo
func (*ModuleConfig) OnStart ¶
func (s *ModuleConfig) OnStart() error
func (*ModuleConfig) ProvidedServices ¶
func (s *ModuleConfig) ProvidedServices() []interface{}
func (*ModuleConfig) SetContainer ¶
func (s *ModuleConfig) SetContainer(container *dig.Container)
Click to show internal directories.
Click to hide internal directories.