server

package
v0.0.0-...-9ff550a Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	Name  string `json:"name"`
	Type  string `json:"type"`
	Index bool   `json:"index"`
}

type Config

type Config struct {
	B   bv.BV
	Log logger.Log
	Cli client.Client
	Vec vector.Vector
	Ctx context.Context
	Stg storage.Storage
	Rts routines.Routines
}

type Create

type Create struct {
	Name  string      `json:"name"`
	Item  []Attribute `json:"item"`
	Event []Attribute `json:"event"`
}

type Server

type Server interface {
	Run()
	Stop()
}

func New

func New(port int, dsn string, cfg *Config) Server

Jump to

Keyboard shortcuts

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