Documentation ¶
Index ¶
- type Server
- type ServerOptions
- type ServerOptionsBuilder
- func WithAssignmentsManager(manager connectors.AssignmentsManager) ServerOptionsBuilder
- func WithCorsOptions(options *models.CorsOptions) ServerOptionsBuilder
- func WithEnvironmentLoader(loader connectors.EnvironmentLoader) ServerOptionsBuilder
- func WithHitsProcessor(processor connectors.HitsProcessor) ServerOptionsBuilder
- func WithLogger(logger *logger.Logger) ServerOptionsBuilder
- func WithRecover(enabled bool) ServerOptionsBuilder
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 CreateServer ¶
func CreateServer(envID string, apiKey string, addr string, opts ...ServerOptionsBuilder) (*Server, error)
@license.name Apache 2.0 @license.url http://www.apache.org/licenses/LICENSE-2.0.html
type ServerOptions ¶
type ServerOptions struct {
// contains filtered or unexported fields
}
type ServerOptionsBuilder ¶
type ServerOptionsBuilder func(*ServerOptions)
func WithAssignmentsManager ¶
func WithAssignmentsManager(manager connectors.AssignmentsManager) ServerOptionsBuilder
func WithCorsOptions ¶
func WithCorsOptions(options *models.CorsOptions) ServerOptionsBuilder
func WithEnvironmentLoader ¶
func WithEnvironmentLoader(loader connectors.EnvironmentLoader) ServerOptionsBuilder
func WithHitsProcessor ¶
func WithHitsProcessor(processor connectors.HitsProcessor) ServerOptionsBuilder
func WithLogger ¶
func WithLogger(logger *logger.Logger) ServerOptionsBuilder
func WithRecover ¶
func WithRecover(enabled bool) ServerOptionsBuilder
Click to show internal directories.
Click to hide internal directories.