Documentation ¶
Overview ¶
Package mysql @Title log capability of zerolog @Description zerolog implementation of log capability @Author Ryan Fan 2021-06-09 @Update Ryan Fan 2021-06-09
Index ¶
- type ConfigNeo4j
- type Neo4jProvider
- func (np *Neo4jProvider) Exec(workFuncs []neo4j.TransactionWork, bookmarks ...string) (string, error)
- func (np *Neo4jProvider) Get(cypher string, args ...interface{}) (interface{}, error)
- func (np *Neo4jProvider) Init(rootConfiger types.Configer, logger types.LogProvider, args ...interface{}) error
- func (np *Neo4jProvider) Reader(bookmarks ...string) neo4j.Session
- func (np *Neo4jProvider) Select(cypher string, args ...interface{}) ([]interface{}, error)
- func (np *Neo4jProvider) Writer(bookmarks ...string) neo4j.Session
- type Neo4jServerConf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigNeo4j ¶
type ConfigNeo4j struct { VirtualUri string `mapstructure:"virtual_uri"` Username string `mapstructure:"username"` Password string `mapstructure:"password"` Servers []*Neo4jServerConf `mapstructure:"servers"` }
type Neo4jProvider ¶
type Neo4jProvider struct { graph.BaseGraphProvider Log types.LogProvider // contains filtered or unexported fields }
func (*Neo4jProvider) Exec ¶
func (np *Neo4jProvider) Exec(workFuncs []neo4j.TransactionWork, bookmarks ...string) (string, error)
func (*Neo4jProvider) Get ¶
func (np *Neo4jProvider) Get(cypher string, args ...interface{}) (interface{}, error)
func (*Neo4jProvider) Init ¶
func (np *Neo4jProvider) Init(rootConfiger types.Configer, logger types.LogProvider, args ...interface{}) error
Init implements types.Provider interface, used to initialize the capability @author Ryan Fan (2021-06-09) @param baseconf.Configer root config interface to extract config info @return error
func (*Neo4jProvider) Select ¶
func (np *Neo4jProvider) Select(cypher string, args ...interface{}) ([]interface{}, error)
type Neo4jServerConf ¶
Click to show internal directories.
Click to hide internal directories.