Documentation ¶
Index ¶
- func NewLogger(config *context.Config) *logging.Logger
- type Configure
- func (c *Configure) Create(ctx context.Context, in *pb.ConfigurationRequest) (*pb.ConfigurationResponse, error)
- func (c *Configure) Delete(ctx context.Context, in *pb.ConfigurationRequest) (*pb.ConfigurationResponse, error)
- func (c *Configure) List(ctx context.Context, in *pb.ConfigurationRequest) (*pb.ConfigurationsResponse, error)
- func (c *Configure) ListAll(ctx context.Context, in *pb.Empty) (*pb.ConfigurationsResponse, error)
- func (c *Configure) Read(ctx context.Context, in *pb.ConfigurationRequest) (*pb.ConfigurationResponse, error)
- func (c *Configure) Update(ctx context.Context, in *pb.ConfigurationRequest) (*pb.ConfigurationResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configure ¶
type Configure struct {
// contains filtered or unexported fields
}
func NewConfigure ¶
Create a new configure service.
func (*Configure) Create ¶
func (c *Configure) Create(ctx context.Context, in *pb.ConfigurationRequest) (*pb.ConfigurationResponse, error)
Create a new configuration in the database using the Protobuf message given.
func (*Configure) Delete ¶
func (c *Configure) Delete(ctx context.Context, in *pb.ConfigurationRequest) (*pb.ConfigurationResponse, error)
Delete a configuration.
func (*Configure) List ¶
func (c *Configure) List(ctx context.Context, in *pb.ConfigurationRequest) (*pb.ConfigurationsResponse, error)
List the configurations for a given namespace.
func (*Configure) ListAll ¶
List all configurations from every namespace found in the Protobuf files.
func (*Configure) Read ¶
func (c *Configure) Read(ctx context.Context, in *pb.ConfigurationRequest) (*pb.ConfigurationResponse, error)
Read out an entire configuration. TODO: create conf.ToProtobuf and do most of this there
func (*Configure) Update ¶
func (c *Configure) Update(ctx context.Context, in *pb.ConfigurationRequest) (*pb.ConfigurationResponse, error)
Update a configuration using the given Protobuf message.
Click to show internal directories.
Click to hide internal directories.