Documentation ¶
Overview ¶
Package devservertest provides a fake implementation of devservers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { // URL is a gs:// URL of a file. URL string // Data is the content of a file. Data []byte // Staged indicates if the file has been staged or not. Staged bool }
File represents a file served by a Server. A set of files served by a Server can be specified by the Files option.
type Option ¶
type Option func(o *options)
Option is an option accepted by NewServer to configure Server initialization.
func Down ¶
func Down() Option
Down returns an option to mark a Server down. Such a server responds negatively to health queries.
Click to show internal directories.
Click to hide internal directories.