service

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(config *context.Config) *logging.Logger

Types

type Configure

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

func NewConfigure

func NewConfigure(db *mongo.Database, log *logging.Logger) *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.

Jump to

Keyboard shortcuts

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