neo4j

package
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host     string `conf:"default:bolt://127.0.0.1:7687,flag:neo4j-host,short:n,env:NEO4J_HOST"`
	Username string `conf:"default:neo4j,flag:neo4j-username,short:u,env:NEO4J_USERNAME"`
	Password string `conf:"required,flag:neo4j-password,short:w,env:NEO4J_PASSWORD"`
	Realm    string
}

type Storage

type Storage struct {
	Connection neo4j.Driver
	Session    neo4j.Session
}

func New

func New(cfg *Config) (*Storage, error)

func (*Storage) CreateIncludeEdge

func (s *Storage) CreateIncludeEdge(_ context.Context, include storage.Edge) error

func (*Storage) CreateProjectNode

func (s *Storage) CreateProjectNode(_ context.Context, projectPath string) error

func (*Storage) CreateTriggerEdge added in v0.14.0

func (s *Storage) CreateTriggerEdge(_ context.Context, edge storage.Edge) error

func (*Storage) RemoveAll added in v0.10.0

func (s *Storage) RemoveAll(_ context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL