server

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

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0, MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingProjectID = errors.New("missing project id")

Functions

func Entry

func Entry(
	port int,
	bucket string,
	imgCache imgcache.ImgCache,
	redis *redis.Client,
	compiler compiler.Compiler,
	sourcesClient sources.Sources,
	log *zap.Logger,
) (err error)

Types

type Server

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

func NewServer

func NewServer(
	bucket string,
	imgCache imgcache.ImgCache,
	markerCache markercache.MarkerCache,
	compiler compiler.Compiler,
	log *zap.Logger,
) *Server

func (*Server) GetRandomMarker

func (s *Server) GetRandomMarker(ctx context.Context, req api.GetRandomMarker) (*api.Marker, error)

func (*Server) GetRandomStack

func (s *Server) GetRandomStack(ctx context.Context, req api.GetRandomStack) (*api.Stack, error)

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(port int) error

Jump to

Keyboard shortcuts

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