Files
isp-config-service/store/state/schemas.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

26 lines
500 B
Go

package state
import "isp-config-service/entity"
type SchemaStore struct {
schemas []entity.ConfigSchema
}
func (ss *SchemaStore) Upsert(schema entity.ConfigSchema) {
// TODO
}
func (ss *SchemaStore) GetByModuleId(moduleId int32) (*entity.ConfigSchema, error) {
// TODO
return nil, nil
}
func (ss *SchemaStore) GetById(id int64) (*entity.ConfigSchema, error) {
// TODO
return nil, nil
}
func NewSchemaStore() *SchemaStore {
return &SchemaStore{schemas: make([]entity.ConfigSchema, 0)}
}