configapi

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package configapi exposes Dogma application configurations via a gRPC API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterServer

func RegisterServer(
	s *grpc.Server,
	apps ...configkit.Application,
)

RegisterServer registers a config server for the config applications.

Types

type Client

type Client struct {
	Connection grpc.ClientConnInterface
}

Client is used to query a server about its application configurations.

func (*Client) ListApplicationIdentities

func (c *Client) ListApplicationIdentities(
	ctx context.Context,
) (_ []configkit.Identity, err error)

ListApplicationIdentities returns the identities of applications hosted by the server.

func (*Client) ListApplications

func (c *Client) ListApplications(
	ctx context.Context,
) ([]configkit.Application, error)

ListApplications returns the configurations of the applications hosted by the server. The handler objects in the returned configuration are nil.

Directories

Path Synopsis
internal
pb

Jump to

Keyboard shortcuts

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