Documentation ¶
Index ¶
- Variables
- func ErrorColumnNotFound(column string) error
- func ErrorUnknownNebulaValueType(t string) error
- func SetLogLevel(level LogLevel)
- type Config
- type FetchController
- type GoController
- type LogLevel
- type MatchController
- type NGDB
- type PathController
- func (pe *PathController) Find() ([][]Relationship, error)
- func (pe *PathController) From(from string) *PathController
- func (pe *PathController) Over(over string) *PathController
- func (pe *PathController) To(to string) *PathController
- func (pe *PathController) Upto(num int) *PathController
- func (pe *PathController) Value() (*nebula.ResultSet, error)
- type Relationship
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorResultNotFound = errors.New("no row found in nebula") ErrorModelNotPtr = errors.New("model type must be ptr") ErrorInvalidModel = errors.New("model ptr invalid") ErrorInvalidModelType = errors.New("model type invalid") )
View Source
var (
Debug bool
)
Functions ¶
func ErrorColumnNotFound ¶
func ErrorUnknownNebulaValueType ¶
ErrorUnknownNebulaValueType 无法处理的 nebula 数据类型
func SetLogLevel ¶
func SetLogLevel(level LogLevel)
Types ¶
type FetchController ¶
type FetchController struct {
// contains filtered or unexported fields
}
func (*FetchController) Find ¶
func (f *FetchController) Find(model interface{}) error
func (*FetchController) Key ¶
func (fc *FetchController) Key(key string) *FetchController
Key Tag properties.k-v key
func (*FetchController) Tags ¶
func (fc *FetchController) Tags(tags ...string) *FetchController
type GoController ¶
type GoController struct {
// contains filtered or unexported fields
}
func (*GoController) Find ¶
func (g *GoController) Find(model interface{}) error
func (*GoController) Over ¶
func (g *GoController) Over(over string) *GoController
func (*GoController) Step ¶
func (g *GoController) Step(steps ...int) *GoController
func (*GoController) Yield ¶
func (g *GoController) Yield(yield string) *GoController
type MatchController ¶
type MatchController struct {
// contains filtered or unexported fields
}
func (*MatchController) Finds ¶
func (m *MatchController) Finds(models ...interface{}) error
type NGDB ¶
func (*NGDB) Fetch ¶
func (db *NGDB) Fetch(ids ...string) *FetchController
func (*NGDB) GOFrom ¶
func (db *NGDB) GOFrom(from string) *GoController
func (*NGDB) Match ¶
func (db *NGDB) Match(ngql string) *MatchController
func (*NGDB) Path ¶
func (db *NGDB) Path(pathKind string) *PathController
type PathController ¶
type PathController struct {
// contains filtered or unexported fields
}
func (*PathController) Find ¶
func (pe *PathController) Find() ([][]Relationship, error)
func (*PathController) From ¶
func (pe *PathController) From(from string) *PathController
func (*PathController) Over ¶
func (pe *PathController) Over(over string) *PathController
func (*PathController) To ¶
func (pe *PathController) To(to string) *PathController
func (*PathController) Upto ¶
func (pe *PathController) Upto(num int) *PathController
type Relationship ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.