service

package
v0.0.0-...-87de96b Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configure

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

func NewConfigure

func NewConfigure(db *mongo.Database) *Configure

Create a new configure service.

func (*Configure) Create

Create a new configuration in the database using the Protobuf message given.

func (*Configure) Delete

Delete a configuration.

func (*Configure) List

List the configurations for a given namespace.

func (*Configure) ListAll

func (c *Configure) ListAll(ctx context.Context, in *pb.Empty) (*pb.ConfigurationsResponse, error)

List all configurations from every namespace found in the Protobuf files.

func (*Configure) Read

Read out an entire configuration. TODO: create conf.ToProtobuf and do most of this there

func (*Configure) Update

Update a configuration using the given Protobuf message.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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