web

package
v1.999.0-test Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package web builds a web server to navigate through datamon repos.

You can use the "packr clean" command to clean up this, and any other packr generated files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRouter

func InitRouter(srv *Server) http.Handler

Types

type Server

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

Server describe a web server with templates

func NewServer

func NewServer(params ServerParams) (*Server, error)

NewServer builds a new web server with page handlers

func (*Server) HandleBundleListFiles

func (s *Server) HandleBundleListFiles() http.HandlerFunc

func (*Server) HandleHome

func (s *Server) HandleHome() http.HandlerFunc

func (*Server) HandleRepoListBundles

func (s *Server) HandleRepoListBundles() http.HandlerFunc

type ServerParams

type ServerParams struct {
	Stores     context2.Stores
	Credential string
}

Directories

Path Synopsis
You can use the "packr2 clean" command to clean up this, and any other packr generated files.
You can use the "packr2 clean" command to clean up this, and any other packr generated files.

Jump to

Keyboard shortcuts

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