inmemdatasrvstore

package
v0.0.0-...-c5655c4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store ...

func New

func New() *Store

New ...

func (*Store) Add

func (s *Store) Add(srv *datasrvstore.Server) (*datasrvstore.Server, error)

Add ...

func (*Store) All

func (s *Store) All() ([]*datasrvstore.Server, error)

All ...

func (*Store) Get

func (s *Store) Get(id int) (*datasrvstore.Server, error)

Get ...

func (*Store) GetCurrent

func (s *Store) GetCurrent() (*datasrvstore.Server, error)

GetCurrent ...

func (*Store) SetCurrent

func (s *Store) SetCurrent(id int) error

SetCurrent ...

Jump to

Keyboard shortcuts

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