server

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KVRequest

type KVRequest struct {
	Table string `json:"table"`
	Key   int    `json:"key"`
	Value string `json:"value,omitempty"`
}

type Server

type Server struct {
	DB  litegodb.DB
	Cfg *litegodb.Config
	// contains filtered or unexported fields
}

func NewServer

func NewServer(db litegodb.DB, cfg *litegodb.Config) *Server

func (*Server) Start

func (s *Server) Start() error

type WSRequest

type WSRequest struct {
	Op    string `json:"op"`
	Table string `json:"table"`
	Key   int    `json:"key"`
	Value string `json:"value,omitempty"`
}

type WSResponse

type WSResponse struct {
	Status  string `json:"status"`
	Value   string `json:"value,omitempty"`
	Message string `json:"message,omitempty"`
}

Jump to

Keyboard shortcuts

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