service_handler

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandlers

func RegisterHandlers(server *server.Server, grp *huma.Group)

Types

type CreateServiceInput

type CreateServiceInput struct {
	server.BaseAuthInput
	Body *models.CreateServiceInput
}

type CreateServiceResponse

type CreateServiceResponse struct {
	Body struct {
		Data *models.ServiceResponse `json:"data"`
	}
}

type DatabaseConfigurable

type DatabaseConfigurable struct {
	Default string   `json:"default" description:"Default value for the field"`
	Options []string `json:"options" nullable:"false" description:"Possible values for the field"`
}

type DatabaseConfigurables

type DatabaseConfigurables struct {
	Version DatabaseConfigurable `json:"version" description:"Version of the database"`
}

type DeleteServiceInput

type DeleteServiceInput struct {
	server.BaseAuthInput
	Body struct {
		TeamID        uuid.UUID `json:"team_id" required:"true"`
		ProjectID     uuid.UUID `json:"project_id" required:"true"`
		EnvironmentID uuid.UUID `json:"environment_id" required:"true"`
		ServiceID     uuid.UUID `json:"service_id" required:"true"`
	}
}

type DeleteServiceResponse

type DeleteServiceResponse struct {
	Body struct {
		Data server.DeletedResponse `json:"data"`
	}
}

type GetDatabaseResponse

type GetDatabaseResponse struct {
	Body struct {
		Data DatabaseConfigurables `json:"data" nullable:"false"`
	}
}

type GetDatabaseSpecInput

type GetDatabaseSpecInput struct {
	server.BaseAuthInput
	Type    string `query:"type" required:"true" description:"Type of the database resource (e.g. postgres)"`
	Version string `query:"version" required:"false" description:"Version of the custom services release"`
}

type GetServiceInput

type GetServiceInput struct {
	server.BaseAuthInput
	ServiceID     uuid.UUID `query:"service_id" required:"true"`
	TeamID        uuid.UUID `query:"team_id" required:"true"`
	ProjectID     uuid.UUID `query:"project_id" required:"true"`
	EnvironmentID uuid.UUID `query:"environment_id" required:"true"`
}

Get a single service by ID

type GetServiceResponse

type GetServiceResponse struct {
	Body struct {
		Data *models.ServiceResponse `json:"data"`
	}
}

type HandlerGroup

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

func (*HandlerGroup) CreateService

func (self *HandlerGroup) CreateService(ctx context.Context, input *CreateServiceInput) (*CreateServiceResponse, error)

func (*HandlerGroup) DeleteService

func (self *HandlerGroup) DeleteService(ctx context.Context, input *DeleteServiceInput) (*DeleteServiceResponse, error)

func (*HandlerGroup) GetDatabaseDefinition

func (self *HandlerGroup) GetDatabaseDefinition(ctx context.Context, input *GetDatabaseSpecInput) (*GetDatabaseResponse, error)

ListDatabases handles GET /databases/get

func (*HandlerGroup) GetService

func (self *HandlerGroup) GetService(ctx context.Context, input *GetServiceInput) (*GetServiceResponse, error)

GetService handles GET /services/get

func (*HandlerGroup) ListDatabases

func (self *HandlerGroup) ListDatabases(ctx context.Context, input *server.BaseAuthInput) (*ListDatabasesResponse, error)

ListDatabases handles GET /databases/list

func (*HandlerGroup) ListEndpoints

func (self *HandlerGroup) ListEndpoints(ctx context.Context, input *ListEndpointsInput) (*ListEndpointsResponse, error)

ListEndpoints handles GET /services/endpoints/list

func (*HandlerGroup) ListServices

func (self *HandlerGroup) ListServices(ctx context.Context, input *ListServiceInput) (*ListServiceResponse, error)

ListServices handles GET /services/list

func (*HandlerGroup) UpdateService

func (self *HandlerGroup) UpdateService(ctx context.Context, input *UpdateServiceInput) (*UpdatServiceResponse, error)

type ListDatabasesResponse

type ListDatabasesResponse struct {
	Body struct {
		Data []string `json:"data" nullable:"false"`
	}
}

type ListEndpointsInput

type ListEndpointsInput struct {
	server.BaseAuthInput
	TeamID        uuid.UUID `query:"team_id" required:"true"`
	ProjectID     uuid.UUID `query:"project_id" required:"true"`
	EnvironmentID uuid.UUID `query:"environment_id" required:"true"`
	ServiceID     uuid.UUID `query:"service_id" required:"true"`
}

type ListEndpointsResponse

type ListEndpointsResponse struct {
	Body struct {
		Data *models.EndpointDiscovery `json:"data"`
	}
}

type ListServiceInput

type ListServiceInput struct {
	server.BaseAuthInput
	TeamID        uuid.UUID `query:"team_id" required:"true"`
	ProjectID     uuid.UUID `query:"project_id" required:"true"`
	EnvironmentID uuid.UUID `query:"environment_id" required:"true"`
}

type ListServiceResponse

type ListServiceResponse struct {
	Body struct {
		Data []*models.ServiceResponse `json:"data" nullable:"false"`
	}
}

type UpdatServiceResponse

type UpdatServiceResponse struct {
	Body struct {
		Data *models.ServiceResponse `json:"data"`
	}
}

type UpdateServiceInput

type UpdateServiceInput struct {
	server.BaseAuthInput
	Body *models.UpdateServiceInput
}

Jump to

Keyboard shortcuts

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