schema

package
v0.0.0-...-52d38b8 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

This package is organizes the schema related use cases

In order to get started with a new schema

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	Name       string
	Descriptor *desc.FileDescriptor
}

type DatabaseManager

type DatabaseManager interface {
	StartDatabase(database Database)
}

type Server

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

func NewServer

func NewServer(repository WriteDatabaseRepository, manager DatabaseManager) *Server

func (*Server) CreateDatabase

func (s *Server) CreateDatabase(ctx context.Context, request *schemapb.Database) (*schemapb.CreateDatabaseResponse, error)

func (*Server) DescribeDatabase

func (s *Server) DescribeDatabase(ctx context.Context, database *schemapb.Database) (*schemapb.DescribeDatabaseResponse, error)

type WriteDatabaseRepository

type WriteDatabaseRepository interface {
	CreateDatabase(database string, fd *desc.FileDescriptor) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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