23 lines
495 B
Go
23 lines
495 B
Go
package ocean
|
|
|
|
type Namespace interface {
|
|
}
|
|
|
|
// Force interface implementation
|
|
var _ Namespace = (*namespace)(nil)
|
|
|
|
// namespaces groups multiple collections under a common name.
|
|
type namespace struct {
|
|
name string
|
|
}
|
|
|
|
// NewNamespace creates a new namespace to group multiple collections under a common name.
|
|
func NewNamespace(name string) *namespace {
|
|
return &namespace{name: name}
|
|
}
|
|
|
|
// Count counts the number of collections in the namespace.
|
|
func (ns *namespace) Count() int {
|
|
return 0
|
|
}
|