forked from pSpaces/goSpace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gospace.go
45 lines (36 loc) · 1.11 KB
/
gospace.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package gospace
import (
shr "github.com/DanielHauge/goSpace/shared"
spc "github.com/DanielHauge/goSpace/space"
)
type Space = spc.Space
type Tuple = shr.Tuple
type Template = shr.Template
// NewSpace creates a structure that represents a space.
func NewSpace(name string) Space {
return spc.NewSpace(name)
}
// NewSpace creates a structure that represents a remote space.
func NewRemoteSpace(name string) Space {
return spc.NewRemoteSpace(name)
}
// SpaceInterface contains all interfaces that can operate on a space.
type SpaceInterface interface {
spc.Interspace
}
// CreateTuple creates a structure that represents a tuple.
func CreateTuple(fields ...interface{}) Tuple {
return shr.CreateTuple(fields...)
}
// TupleInterface contains all interfaces that can operate on a tuple.
type TupleInterface interface {
shr.Intertuple
}
// CreateTemplate creates a structure that represents a template.
func CreateTemplate(fields ...interface{}) Template {
return shr.CreateTemplate(fields...)
}
// TemplateInterface contains all interfaces that can operate on a template.
type TemplateInterface interface {
shr.Intertemplate
}