Back to godoc.org
github.com/documize/community / domain / onboard

package onboard

v3.2.0+incompatible
Latest Go to latest
Published: Aug 29, 2019 | License: AGPL-3.0 | Module: github.com/documize/community

Overview

Package onboard handles the setup of sample data for a new Documize instance.

Package onboard handles the setup of sample data for a new Documize instance.

Index

type Handler

type Handler struct {
	Runtime  *env.Runtime
	Store    *store.Store
	Indexer  indexer.Indexer
	MappedID map[string]string
}

Handler contains the runtime information such as logging and database.

func (*Handler) InstallSample

func (h *Handler) InstallSample(w http.ResponseWriter, r *http.Request)

InstallSample inserts sample data into database.

type Store

type Store struct {
	store.Context
}

Store provides data access to version information.

func (Store) ContentCounts

func (s Store) ContentCounts(orgID string) (spaces, docs int)

ContentCounts returns the number of spaces and documents.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier