editortest

package
v0.0.0-...-2842cdc Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: ISC Imports: 4 Imported by: 0

Documentation

Overview

Package editortest provides an editor server for use in tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EditorServer

type EditorServer interface {
	RegisterHandlers(*mux.Router)
	Close() error
}

EditorServer is an interface implemented by editor.Server.

type Server

type Server struct {
	// URL is the URL of the server.
	URL *url.URL
	// contains filtered or unexported fields
}

Server is an HTTP editor server.

func NewServer

func NewServer(editorServer EditorServer) *Server

NewServer returns a new, running Server.

func (*Server) Close

func (s *Server) Close()

Close closes the Server.

func (*Server) PathURL

func (s *Server) PathURL(elems ...string) *url.URL

PathURL returns the URL for the given path on this server.

Jump to

Keyboard shortcuts

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