Documentation
¶
Index ¶
- type Handler
- func (h *Handler) Build(opts ...connect.HandlerOption) (string, http.Handler)
- func (h *Handler) Create(ctx context.Context, req *connect.Request[project.CreateRequest]) (resp *connect.Response[project.CreateResponse], err error)
- func (h *Handler) Delete(ctx context.Context, req *connect.Request[project.DeleteRequest]) (resp *connect.Response[project.DeleteResponse], err error)
- func (h *Handler) Get(ctx context.Context, req *connect.Request[project.GetRequest]) (resp *connect.Response[project.GetResponse], err error)
- func (h *Handler) List(ctx context.Context, req *connect.Request[project.ListRequest]) (*connect.Response[project.ListResponse], error)
- func (h *Handler) PublicKey(ctx context.Context, req *connect.Request[project.PublicKeyRequest]) (resp *connect.Response[project.PublicKeyResponse], err error)
- func (h *Handler) ServiceName() string
- func (h *Handler) Update(ctx context.Context, req *connect.Request[project.UpdateRequest]) (resp *connect.Response[project.UpdateResponse], err error)
- func (h *Handler) Use(ctx context.Context, req *connect.Request[project.UseRequest]) (resp *connect.Response[project.UseResponse], err error)
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 (*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 (*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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.