httpserver

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandleFunc

type HandleFunc struct {
	Pattern string
	Handler http.HandlerFunc
}

func Routes

func Routes(authenticationService service.AuthenticationService, noteService service.NoteService) []HandleFunc

type Server

type Server struct {
	Mux           *http.ServeMux
	HttpServer    *http.Server
	GraphQLServer *http.Server
}

func NewGraphQLServer added in v0.5.0

func NewGraphQLServer(authenticationService service.AuthenticationService, noteService service.NoteService, cfg config.Configuration, jwtDatasource domain.JwtDatasource) *Server

NewGraphQLServer creates and configures a new GraphQL server with the specified address.

func NewRestServer added in v0.5.0

func NewRestServer(authenticationService service.AuthenticationService, noteService service.NoteService, jwtDatasource domain.JwtDatasource, cfg config.Configuration) *Server

NewRestServer creates and configures a new HTTP server with the specified address.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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