package store

var (
	LarkKeyPrefix = "lark-"
	CubeKeyPrefix = "cube-"
	P7SKeyPrefix  = "p7s-"
)

var client Factory

// Factory defines the iam platform storage interface.
type Factory interface {
	Users() UserStore
	Dashboards() DashboardStore
	Close() error
}

// Client return the store client instance.
func Client() Factory {
	return client
}

// SetClient set the iam store client.
func SetClient(factory Factory) {
	client = factory
}
