Documentation ¶
Index ¶
- func DeleteNode(ctx context.Context, tx *dgo.Txn, id string) (*api.Response, error)
- func Dial(network, address string, timeout time.Duration) (net.Conn, error)
- func Discard(ctx context.Context, txn *dgo.Txn)
- func InitSchema()
- func IsUID(s string) bool
- func Mutate(ctx context.Context, tx *dgo.Txn, m Mutation) ([]map[string]interface{}, error)
- func NewClient(ctx context.Context) (*dgo.Dgraph, context.CancelFunc, error)
- func NewRestClient() *rest.Client
- func NodeLabel(resourceType string) string
- func ReadNode(ctx context.Context, tx *dgo.Txn, id string) (map[string]interface{}, error)
- func ReadNodeTx(ctx context.Context, id string) (map[string]interface{}, error)
- func RequestTransaction(r *http.Request) *dgo.Txn
- func TransactionMiddleware(next http.Handler) http.Handler
- func WithAuthToken(ctx context.Context) context.Context
- type ListResult
- type Mutation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteNode ¶
func InitSchema ¶
func InitSchema()
func NewRestClient ¶
Types ¶
type ListResult ¶
func ReadList ¶
func ReadList(ctx context.Context, tx *dgo.Txn, label string, pg pagination.Pagination) (*ListResult, error)
Click to show internal directories.
Click to hide internal directories.