23 lines
495 B
Go
Raw Normal View History

2023-07-04 22:20:26 +00:00
package ocean
type Namespace interface {
}
2023-07-05 15:23:50 +00:00
// Force interface implementation
var _ Namespace = (*namespace)(nil)
// namespaces groups multiple collections under a common name.
2023-07-04 22:20:26 +00:00
type namespace struct {
name string
}
2023-07-05 15:23:50 +00:00
// NewNamespace creates a new namespace to group multiple collections under a common name.
func NewNamespace(name string) *namespace {
return &namespace{name: name}
2023-07-04 22:20:26 +00:00
}
2023-07-05 15:23:50 +00:00
// Count counts the number of collections in the namespace.
func (ns *namespace) Count() int {
return 0
}