mongostore

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(url string, databaseName string) (presistence.Store, error)

New ...

Types

type Store

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

Store ...

func (*Store) C

func (s *Store) C(name string) *mgo.Collection

C means collection

func (*Store) DelNocacheRule

func (s *Store) DelNocacheRule(id string) error

DelNocacheRule func

func (*Store) DelPathRule

func (s *Store) DelPathRule(id string) error

DelPathRule func

func (*Store) DelReverseServer

func (s *Store) DelReverseServer(id string) error

DelReverseServer func

func (*Store) DelReverseServerGroup

func (s *Store) DelReverseServerGroup(group string) error

DelReverseServerGroup func

func (*Store) DelServerRule

func (s *Store) DelServerRule(id string) error

DelServerRule func

func (*Store) Instance

func (s *Store) Instance() *presistence.Instance

Instance ...

func (*Store) NewNocacheRule

func (s *Store) NewNocacheRule(r rule.Nocacher) error

NewNocacheRule func

func (*Store) NewPathRule

func (s *Store) NewPathRule(r rule.PathRuler) error

NewPathRule func

func (*Store) NewReverseServer

func (s *Store) NewReverseServer(group string, r rule.ReverseServer) error

NewReverseServer func

func (*Store) NewServerRule

func (s *Store) NewServerRule(r rule.ServerRuler) error

NewServerRule func

func (*Store) NocacheRuleByID

func (s *Store) NocacheRuleByID(id string) rule.Nocacher

NocacheRuleByID ...

func (*Store) NocacheRules

func (s *Store) NocacheRules(offset, limit int) ([]rule.Nocacher, int)

NocacheRules ...

func (*Store) PathRuleByID

func (s *Store) PathRuleByID(id string) rule.PathRuler

PathRuleByID ...

func (*Store) PathRulesPage

func (s *Store) PathRulesPage(offset, limit int) ([]rule.PathRuler, int)

PathRulesPage func

func (*Store) ReverseServerByGroup

func (s *Store) ReverseServerByGroup(group string, offset, limit int) ([]rule.ReverseServer, int)

ReverseServerByGroup func

func (*Store) ReverseServerByID

func (s *Store) ReverseServerByID(group string, id string) rule.ReverseServer

ReverseServerByID ...

func (*Store) ReverseServerGroups

func (s *Store) ReverseServerGroups() map[string]int

ReverseServerGroups ... 获取所有的分组名字和数量

func (*Store) ServerRuleByID

func (s *Store) ServerRuleByID(id string) rule.ServerRuler

ServerRuleByID ...

func (*Store) ServerRulesPage

func (s *Store) ServerRulesPage(offset, limit int) ([]rule.ServerRuler, int)

ServerRulesPage func

func (*Store) UpdateNocacheRule

func (s *Store) UpdateNocacheRule(id string, r rule.Nocacher) error

UpdateNocacheRule func ...

func (*Store) UpdatePathRule

func (s *Store) UpdatePathRule(id string, r rule.PathRuler) error

UpdatePathRule func ...

func (*Store) UpdateReverseServer

func (s *Store) UpdateReverseServer(id string, r rule.ReverseServer) error

UpdateReverseServer func ...

func (*Store) UpdateReverseServerGroupName

func (s *Store) UpdateReverseServerGroupName(group string, newname string) error

UpdateReverseServerGroupName ...

func (*Store) UpdateServerRule

func (s *Store) UpdateServerRule(id string, r rule.ServerRuler) error

UpdateServerRule func ...

func (*Store) Updated

func (s *Store) Updated() <-chan presistence.ChangedChan

Updated ...

Jump to

Keyboard shortcuts

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