Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(es graphql.ExecutableSchema, opt ServerOption) (*Server, error)
func (Server) Option ¶
func (s Server) Option() ServerOption
type ServerOption ¶
type ServerOption struct { Addr string `validate:"required" default:":8080"` Endpoint string `validate:"required" default:"/graphql"` GraphiQL *bool `validate:"required" default:"true"` Playground *bool `validate:"required" default:"false"` Voyager *bool `validate:"required" default:"true"` Introspection *bool `validate:"required" default:"true"` CORS *struct { AllowedOrigins []string AllowCredentials bool `default:"true"` } HealthCheck struct { Path string `validate:"required" default:"/health_check"` } }
func (ServerOption) BasePath ¶
func (opt ServerOption) BasePath() string
func (ServerOption) FullEndpoint ¶
func (opt ServerOption) FullEndpoint() string
Click to show internal directories.
Click to hide internal directories.