gemini

package
v0.0.0-...-41cd4ca Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContextKeyGoContext = "durian-context"
	ContextKeyUser      = "durian-user"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module interface {
	Name() string
	Route(s *Server) error
}

Module represents a module that can be added to a http server.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is a GraphQL api server.

func NewServer

func NewServer(l logic.Logic) (*Server, error)

NewServer will create a new GraphQL server.

func (*Server) Handle

func (s *Server) Handle(path string, f gig.HandlerFunc) *gig.Route

Handle attaches a function to a path.

func (*Server) Start

func (s *Server) Start() error

Start starts the gemini server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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