web

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2018 License: MIT Imports: 5 Imported by: 1

README

Web Interface for Ayi

Issues: #15 #47

Usage

NOTE: Use go get github.com/at15/go.rice/rice instead of go get github.com/GeertJohan/go.rice/rice to work on windows, the fork disabled zip -A Ayi.exe

Embed static assets

  • go build -o Ayi
  • rice append -i github.com/dyweb/Ayi/app/web --exec Ayi
  • mv Ayi $GOPATH/bin/Ayi

Functionalities

  • Serve static file Ayi web static
  • Desktop notifications
  • Home page
  • log viewer

TODO

  • allow simple http server
  • embed static assets #47
  • embed for multiple packages

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Root   string
	Port   int
	Router *web.Router
}

func NewAyiServer

func NewAyiServer(port int) *Server

func NewStaticServer

func NewStaticServer(root string, port int) *Server

func (*Server) Run

func (server *Server) Run()

Jump to

Keyboard shortcuts

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