Back to godoc.org

Package memory

v0.0.0-...-1557bcf
Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module: github.com/luci/luci-go

Overview

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

Index

type Config

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

Config implements config.ConfigurationServer.

func (*Config) Delete

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

Delete handles a request to delete a config.

func (*Config) Ensure

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

Ensure handles a request to create or update a config.

func (*Config) Get

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

Get handles a request to get a config.

func (*Config) List

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

List handles a request to list all configs.

func (*Config) Update

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

Update handles a request to update a config.

type Projects

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

Projects implements projects.ProjectsServer.

func (*Projects) Delete

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

Delete handles a request to delete a project.

func (*Projects) Ensure

func (srv *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 (srv *Projects) Get(c context.Context, req *projects.GetRequest) (*projects.Config, error)

Get handles a request to get a project.

func (*Projects) List

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

List handles a request to list all projects.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier