Documentation

Overview

    Package rpc contains RPC server implementations.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func NewConfigurationServer

    func NewConfigurationServer() config.ConfigurationServer

      NewConfigurationServer returns a new configuration server.

      func NewInstancesServer

      func NewInstancesServer() instances.InstancesServer

        NewInstancesServer returns a new instances server.

        func NewProjectsServer

        func NewProjectsServer() projects.ProjectsServer

          NewProjectsServer returns a new projects server.

          Types

          type Config

          type Config struct {
          }

            Config implements config.ConfigurationServer.

            func (*Config) Delete

            func (*Config) Delete(c context.Context, req *config.DeleteRequest) (*empty.Empty, error)

              Delete handles a request to delete a config. For app-internal use only.

              func (*Config) Ensure

              func (*Config) Ensure(c context.Context, req *config.EnsureRequest) (*config.Config, error)

                Ensure handles a request to create or update a config. For app-internal use only.

                func (*Config) Get

                func (*Config) Get(c context.Context, req *config.GetRequest) (*config.Config, error)

                  Get handles a request to get a config.

                  func (*Config) List

                  func (*Config) List(c context.Context, req *config.ListRequest) (*config.ListResponse, error)

                    List handles a request to list all configs.

                    func (*Config) Update

                    func (*Config) Update(c context.Context, req *config.UpdateRequest) (*config.Config, error)

                      Update handles a request to update a config.

                      type Instances

                      type Instances struct {
                      }

                        Instances implements instances.InstancesServer.

                        func (*Instances) Delete

                        func (*Instances) Delete(c context.Context, req *instances.DeleteRequest) (*empty.Empty, error)

                          Delete handles a request to delete an instance asynchronously.

                          func (*Instances) Get

                          func (*Instances) Get(c context.Context, req *instances.GetRequest) (*instances.Instance, error)

                            Get handles a request to get an existing instance.

                            func (*Instances) List

                            func (*Instances) List(c context.Context, req *instances.ListRequest) (*instances.ListResponse, error)

                              List handles a request to list instances.

                              type Projects

                              type Projects struct {
                              }

                                Projects implements projects.ProjectsServer.

                                func (*Projects) Delete

                                func (*Projects) Delete(c context.Context, req *projects.DeleteRequest) (*empty.Empty, error)

                                  Delete handles a request to delete a project.

                                  func (*Projects) Ensure

                                  func (*Projects) Ensure(c context.Context, req *projects.EnsureRequest) (*projects.Config, error)

                                    Ensure handles a request to create or update a project.

                                    func (*Projects) Get

                                    func (*Projects) Get(c context.Context, req *projects.GetRequest) (*projects.Config, error)

                                      Get handles a request to get a project.

                                      func (*Projects) List

                                      func (*Projects) List(c context.Context, req *projects.ListRequest) (*projects.ListResponse, error)

                                        List handles a request to list all projects.

                                        Directories

                                        Path Synopsis
                                        Package memory contains a RPC servers backed by in-memory storage.
                                        Package memory contains a RPC servers backed by in-memory storage.