server

package
v0.0.0-...-178e08f Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrIDNotFound = errors.New("Id not found")

Functions

func NewGRPCServer

func NewGRPCServer() *grpc.Server

Types

type Entries

type Entries struct {
	// contains filtered or unexported fields
}

func NewEntries

func NewEntries() (*Entries, error)

func (*Entries) Insert

func (c *Entries) Insert(entry *api.Entry) (int, error)

func (*Entries) List

func (c *Entries) List(offset int) ([]*api.Entry, error)

func (*Entries) Retrieve

func (c *Entries) Retrieve(id int) (*api.Entry, error)

type Entry

type Entry struct {
	Time   time.Time
	ID     int
	Prefix string
	Suffix string
	Title  string
	Url    string
	Config string
}

Jump to

Keyboard shortcuts

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