Files
isp-config-service/store/state/common_config.go
T
Maxim Merzhanov 445389b7d8 - implement raft logger
- replace logger with isp-log
- add storage layer (pq)
2019-10-10 11:18:29 +03:00

25 lines
500 B
Go

package state
import "isp-config-service/entity"
type CommonConfigStore struct {
configs []entity.CommonConfig
}
func (cs *CommonConfigStore) Upsert(config entity.CommonConfig) {
// TODO
}
func (cs *CommonConfigStore) Delete(config entity.CommonConfig) {
// TODO
}
func (cs *CommonConfigStore) GetById(id int64) (*entity.CommonConfig, error) {
// TODO
return nil, nil
}
func NewCommonConfigStore() *CommonConfigStore {
return &CommonConfigStore{configs: make([]entity.CommonConfig, 0)}
}