Documentation ¶
Index ¶
- func New(url string, databaseName string) (presistence.Store, error)
- type Store
- func (s *Store) C(name string) *mgo.Collection
- func (s *Store) DelNocacheRule(id string) error
- func (s *Store) DelPathRule(id string) error
- func (s *Store) DelReverseServer(id string) error
- func (s *Store) DelReverseServerGroup(group string) error
- func (s *Store) DelServerRule(id string) error
- func (s *Store) Instance() *presistence.Instance
- func (s *Store) NewNocacheRule(r rule.Nocacher) error
- func (s *Store) NewPathRule(r rule.PathRuler) error
- func (s *Store) NewReverseServer(group string, r rule.ReverseServer) error
- func (s *Store) NewServerRule(r rule.ServerRuler) error
- func (s *Store) NocacheRuleByID(id string) rule.Nocacher
- func (s *Store) NocacheRules(offset, limit int) ([]rule.Nocacher, int)
- func (s *Store) PathRuleByID(id string) rule.PathRuler
- func (s *Store) PathRulesPage(offset, limit int) ([]rule.PathRuler, int)
- func (s *Store) ReverseServerByGroup(group string, offset, limit int) ([]rule.ReverseServer, int)
- func (s *Store) ReverseServerByID(group string, id string) rule.ReverseServer
- func (s *Store) ReverseServerGroups() map[string]int
- func (s *Store) ServerRuleByID(id string) rule.ServerRuler
- func (s *Store) ServerRulesPage(offset, limit int) ([]rule.ServerRuler, int)
- func (s *Store) UpdateNocacheRule(id string, r rule.Nocacher) error
- func (s *Store) UpdatePathRule(id string, r rule.PathRuler) error
- func (s *Store) UpdateReverseServer(id string, r rule.ReverseServer) error
- func (s *Store) UpdateReverseServerGroupName(group string, newname string) error
- func (s *Store) UpdateServerRule(id string, r rule.ServerRuler) error
- func (s *Store) Updated() <-chan presistence.ChangedChan
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store ...
func (*Store) DelReverseServer ¶
DelReverseServer func
func (*Store) DelReverseServerGroup ¶
DelReverseServerGroup func
func (*Store) NewNocacheRule ¶
NewNocacheRule 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 ¶
NocacheRuleByID ...
func (*Store) NocacheRules ¶
NocacheRules ...
func (*Store) PathRuleByID ¶
PathRuleByID ...
func (*Store) PathRulesPage ¶
PathRulesPage func
func (*Store) ReverseServerByGroup ¶
ReverseServerByGroup func
func (*Store) ReverseServerByID ¶
func (s *Store) ReverseServerByID(group string, id string) rule.ReverseServer
ReverseServerByID ...
func (*Store) ReverseServerGroups ¶
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 ¶
UpdateNocacheRule func ...
func (*Store) UpdatePathRule ¶
UpdatePathRule func ...
func (*Store) UpdateReverseServer ¶
func (s *Store) UpdateReverseServer(id string, r rule.ReverseServer) error
UpdateReverseServer func ...
func (*Store) UpdateReverseServerGroupName ¶
UpdateReverseServerGroupName ...
func (*Store) UpdateServerRule ¶
func (s *Store) UpdateServerRule(id string, r rule.ServerRuler) error
UpdateServerRule func ...
Click to show internal directories.
Click to hide internal directories.