Documentation
¶
Index ¶
- Variables
- func NewStore(file string) (eosc.IStore, error)
- func Register()
- type Cert
- type Config
- type Factory
- type Router
- type Rule
- type Service
- type Store
- func (s *Store) AddListen(h eosc.IStoreEventHandler) error
- func (s *Store) All() []eosc.StoreValue
- func (s *Store) Del(id string) error
- func (s *Store) Get(id string) (eosc.StoreValue, bool)
- func (s *Store) GetListener() eosc.IStoreListener
- func (s *Store) Initialization() error
- func (s *Store) ReadLock(ctx context.Context) (bool, error)
- func (s *Store) ReadOnly() bool
- func (s *Store) ReadUnLock() error
- func (s *Store) Set(v eosc.StoreValue) error
- func (s *Store) TryLock(ctx context.Context, expire int) (bool, error)
- func (s *Store) UnLock() error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorReadOnly = fmt.Errorf("yaml :%w", eosc.ErrorStoreReadOnly)
)
Functions ¶
Types ¶
type Router ¶
type Rule ¶
type Rule struct {
Target string `json:"target" yaml:"target"`
RemoteIp string `json:"ip" yaml:"ip"`
Host string `json:"host" yaml:"host"`
Location string `json:"location" yaml:"location"`
Header map[string]string `json:"header" yaml:"header"`
Query map[string]string `json:"query" yaml:"query"`
Cookie map[string]string `json:"cookie" yaml:"cookie"`
}
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) All ¶
func (s *Store) All() []eosc.StoreValue
func (*Store) GetListener ¶
func (s *Store) GetListener() eosc.IStoreListener
func (*Store) Initialization ¶
func (*Store) ReadUnLock ¶
Click to show internal directories.
Click to hide internal directories.