sgsimulator

package
v0.0.0-...-a137165 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Run a simulated Sync Gateway that ignores requests

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BulkDocsHandler

func BulkDocsHandler(w http.ResponseWriter, req *http.Request)

func DoNothingHandler

func DoNothingHandler(w http.ResponseWriter, req *http.Request)

func HomeHandler

func HomeHandler(w http.ResponseWriter, req *http.Request)

Types

type BulkDocsResponse

type BulkDocsResponse struct {
	Name    string
	Hobbies []string
}

type SGSimulator

type SGSimulator struct {
	Db string // the name of the database to serve
}

func NewSGSimulator

func NewSGSimulator(db string) *SGSimulator

func (*SGSimulator) Run

func (sg *SGSimulator) Run()

Jump to

Keyboard shortcuts

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