datastore

package
v0.0.0-...-258337a Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Copyright (c) 2021 Cisco Systems, Inc and its affiliates All Rights reserved

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateConfig

func UpdateConfig(c *config.Config, consul *consul.HelloWorldConsul, vault *vault.HelloWorldVault) error

Types

type Cockroach

type Cockroach struct {
	Pool *pgxpool.Pool
}

Cockroach is a representation of a CockroachDB Database.

func NewCockroachDB

func NewCockroachDB(c *config.Config) (*Cockroach, error)

func (Cockroach) BuildSchema

func (c Cockroach) BuildSchema() error

func (*Cockroach) CreateItem

func (c *Cockroach) CreateItem(ctx context.Context, i openapi.Item) (openapi.ImplResponse, error)

func (*Cockroach) CreateLanguage

func (c *Cockroach) CreateLanguage(ctx context.Context, l openapi.Language) (openapi.ImplResponse, error)

func (*Cockroach) DeleteItem

func (c *Cockroach) DeleteItem(ctx context.Context, id string) (openapi.ImplResponse, error)

func (*Cockroach) DeleteLanguage

func (c *Cockroach) DeleteLanguage(ctx context.Context, id string) (openapi.ImplResponse, error)

func (*Cockroach) GetItem

func (c *Cockroach) GetItem(ctx context.Context, id string) (openapi.ImplResponse, error)

func (*Cockroach) GetItems

func (c *Cockroach) GetItems(ctx context.Context, id string) (openapi.ImplResponse, error)

func (*Cockroach) GetLanguage

func (c *Cockroach) GetLanguage(ctx context.Context, id string) (openapi.ImplResponse, error)

func (*Cockroach) GetLanguages

func (c *Cockroach) GetLanguages(ctx context.Context) (openapi.ImplResponse, error)

func (*Cockroach) UpdateItem

func (c *Cockroach) UpdateItem(ctx context.Context, id string, item openapi.Item) (openapi.ImplResponse, error)

func (*Cockroach) UpdateLanguage

func (c *Cockroach) UpdateLanguage(ctx context.Context, id string, language openapi.Language) (openapi.ImplResponse, error)

Jump to

Keyboard shortcuts

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