server

package
v0.0.0-...-0026edb Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 8 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 {
	ServerOpts
}

Server represents a server

func NewServer

func NewServer(opts ServerOpts) *Server

NewServer creates a new cache server

func (*Server) Start

func (s *Server) Start() error

Start starts the server

type ServerOpts

type ServerOpts struct {
	ListenAddr string
	RaftNode   *raft.Raft
	Log        *gogger.Logger
}

ServerOpts represents the options for a server

Jump to

Keyboard shortcuts

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