server

package
v0.0.0-...-edb8eda Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPort uint16 = 6379
	DefaultHost string = "0.0.0.0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port uint16
	Host string
}

type Connection

type Connection struct {
	Config   Config
	Listener net.Listener
}

func Default

func Default() *Connection

func WithConfig

func WithConfig(config Config) *Connection

func (*Connection) Close

func (c *Connection) Close(ctx context.Context) error

func (*Connection) Serve

func (c *Connection) Serve(ctx context.Context) error

func (*Connection) Start

func (c *Connection) Start() error

Jump to

Keyboard shortcuts

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