page_items

package
v0.0.0-...-85ede20 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2015 License: MPL-2.0 Imports: 1 Imported by: 12

Documentation

Overview

Package page_items contains parsed result by PageProcesser. The result is processed by Pipeline.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PageItems

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

PageItems represents an entity save result parsed by PageProcesser and will be output at last.

func NewPageItems

func NewPageItems(req *request.Request) *PageItems

NewPageItems returns initialized PageItems object.

func (*PageItems) AddItem

func (this *PageItems) AddItem(key string, item string)

AddItem saves a KV result into PageItems.

func (*PageItems) GetAll

func (this *PageItems) GetAll() map[string]string

GetAll returns all the KVs result.

func (*PageItems) GetItem

func (this *PageItems) GetItem(key string) (string, bool)

GetItem returns value of the key.

func (*PageItems) GetRequest

func (this *PageItems) GetRequest() *request.Request

GetRequest returns request of PageItems

func (*PageItems) GetSkip

func (this *PageItems) GetSkip() bool

GetSkip returns skip label.

func (*PageItems) SetSkip

func (this *PageItems) SetSkip(skip bool) *PageItems

SetSkip set skip true to make this page not to be processed by Pipeline.

Jump to

Keyboard shortcuts

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