server

package
v0.3.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

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 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

func (*Server) Listen

func (srv *Server) Listen() error

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context)

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 WithHitsProcessor

func WithHitsProcessor(processor connectors.HitsProcessor) ServerOptionsBuilder

func WithLogger

func WithLogger(logger *logger.Logger) ServerOptionsBuilder

func WithRecover

func WithRecover(enabled bool) ServerOptionsBuilder

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL