cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2018 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//NoteDB exposed the available DB actions for notes
	NoteDB repository.NoteRepository
	//NotebookDB exposed the available DB actions for notebooks.
	NotebookDB repository.NotebookRepository
	//AccountDB exposed the available DB actions for accounts.
	AccountDB repository.AccountRepository
)

Functions

func Execute

func Execute()

Execute add all commands to root.

Types

type Editor

type Editor interface {
	// contains filtered or unexported methods
}

Editor interface

type Server

type Server struct {
	Router *mux.Router
	// contains filtered or unexported fields
}

Server add a REST API layer for manipulating notes/notebooks

func NewServer

func NewServer() *Server

NewServer returns an instance of a Server struct

func (*Server) Initialize

func (s *Server) Initialize()

Initialize initialize signing key & sets handlers to different endpoints

func (*Server) Run

func (s *Server) Run(port string)

Run starts the server

Jump to

Keyboard shortcuts

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