server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package server provides the HTTP and gRPC server implementations for kvs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCServer

func NewGRPCServer(store *kvs.Store) *grpc.Server

func NewHTTPHandler

func NewHTTPHandler(store *kvs.Store) http.Handler

func Run

func Run(ctx context.Context, cfg Config, store *kvs.Store) error

func RunListeners

func RunListeners(ctx context.Context, httpListener, grpcListener net.Listener, store *kvs.Store) error

Types

type Config

type Config struct {
	HTTPAddr string
	GRPCAddr string
}

func DefaultConfig

func DefaultConfig() Config

Jump to

Keyboard shortcuts

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