server

package
v0.0.0-...-2753770 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: GPL-3.0 Imports: 7 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 NewServer

func NewServer(cache cache.Cacher, settings ...Setting) *Server

func (*Server) Run

func (s *Server) Run() error

type Setting

type Setting func(*Server)

func MakeLeader

func MakeLeader(leader bool) Setting

func WithHost

func WithHost(host string) Setting

func WithPort

func WithPort(port int) Setting

Jump to

Keyboard shortcuts

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