server

package
v0.0.0-...-1de548c Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 18 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 {
	Config config.Server

	Query *query.Query
	Redis *redis.Client
}

func NewServer

func NewServer(cfg config.Server, q *query.Query, r *redis.Client) *Server

func (*Server) EnvMiddleware

func (s *Server) EnvMiddleware(next http.Handler) http.Handler

func (*Server) GraphQLServer

func (s *Server) GraphQLServer() *handler.Server

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

func (*Server) Router

func (s *Server) Router() *chi.Mux

Jump to

Keyboard shortcuts

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