repository

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type IdRepository

type IdRepository interface {
	GetOrCreateNode(ctx context.Context, node *pb.Node) (pb.Node, error)
}

func CreateMiddleRepository

func CreateMiddleRepository(id string) (IdRepository, error)

func NewMysqlMiddleRepository

func NewMysqlMiddleRepository(db *mysql.Conn) IdRepository

type MysqlIdRepository

type MysqlIdRepository struct {
	// contains filtered or unexported fields
}

func (*MysqlIdRepository) GetOrCreateNode

func (r *MysqlIdRepository) GetOrCreateNode(ctx context.Context, node *pb.Node) (pb.Node, error)

Jump to

Keyboard shortcuts

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