sysdb

package
v0.0.0-...-2300135 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ISysDB

type ISysDB interface {
	// Returns true if collection exists, false otherwise.
	CheckCollections(ctx context.Context, collectionIds []string) ([]bool, error)
	AddCollection(ctx context.Context, collectionId string) error
}

type MockSysDB

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

func NewMockSysDB

func NewMockSysDB() *MockSysDB

func (*MockSysDB) AddCollection

func (s *MockSysDB) AddCollection(ctx context.Context, collectionId string) error

func (*MockSysDB) CheckCollections

func (s *MockSysDB) CheckCollections(ctx context.Context, collectionIds []string) ([]bool, error)

type SysDB

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

func NewSysDB

func NewSysDB(conn string) *SysDB

func (*SysDB) AddCollection

func (s *SysDB) AddCollection(ctx context.Context, collectionId string) error

func (*SysDB) CheckCollections

func (s *SysDB) CheckCollections(ctx context.Context, collectionIds []string) ([]bool, error)

Jump to

Keyboard shortcuts

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