project

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(p projectParams) *Handler

func (*Handler) Build

func (h *Handler) Build(opts ...connect.HandlerOption) (string, http.Handler)

func (*Handler) Create

func (h *Handler) Create(ctx context.Context, req *connect.Request[project.CreateRequest]) (resp *connect.Response[project.CreateResponse], err error)

Create creates and sets up a project

func (*Handler) Delete

func (h *Handler) Delete(ctx context.Context, req *connect.Request[project.DeleteRequest]) (resp *connect.Response[project.DeleteResponse], err error)

Delete deletes an entire project by dropping all collections in Users.

func (*Handler) Get

func (h *Handler) Get(ctx context.Context, req *connect.Request[project.GetRequest]) (resp *connect.Response[project.GetResponse], err error)

GetConfig retries a config from the database from a specific project and also returns available providers.

func (*Handler) List

func (h *Handler) List(ctx context.Context, req *connect.Request[project.ListRequest]) (*connect.Response[project.ListResponse], error)

List implements projectconnect.ServiceHandler

func (*Handler) PublicKey

func (h *Handler) PublicKey(ctx context.Context, req *connect.Request[project.PublicKeyRequest]) (resp *connect.Response[project.PublicKeyResponse], err error)

GetPublicKeys returns all internal public keys to the client.

func (*Handler) ServiceName

func (h *Handler) ServiceName() string

func (*Handler) Update

func (h *Handler) Update(ctx context.Context, req *connect.Request[project.UpdateRequest]) (resp *connect.Response[project.UpdateResponse], err error)

Update updates the profile of the project. This can be values such as the name and image of the project.

func (*Handler) Use

func (h *Handler) Use(ctx context.Context, req *connect.Request[project.UseRequest]) (resp *connect.Response[project.UseResponse], err error)

Use generates a project token for use with projects.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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