Documentation
¶
Index ¶
- Variables
- func IsValidForwardID(id string) bool
- func ParseTargetURL(targetURL string) (*url.URL, error)
- type CreateForwardRequest
- type Service
- func (s *Service) Close() error
- func (s *Service) CreateForward(ctx context.Context, req CreateForwardRequest) (*registry.Forward, error)
- func (s *Service) DeleteForward(ctx context.Context, forwardID string) error
- func (s *Service) GetForward(ctx context.Context, forwardID string) (*registry.Forward, error)
- func (s *Service) ListForwards(ctx context.Context) ([]registry.Forward, error)
- func (s *Service) TouchLastOpened(ctx context.Context, forwardID string) (*registry.Forward, error)
- func (s *Service) UpdateForward(ctx context.Context, forwardID string, req UpdateForwardRequest) (*registry.Forward, error)
- type UpdateForwardRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrForwardNotFound = registry.ErrForwardNotFound
Functions ¶
func IsValidForwardID ¶
IsValidForwardID enforces a DNS-safe label: - allowed: [a-z0-9-] - length: 1..48 - no leading/trailing '-'
It intentionally matches the control-plane validation to avoid subtle routing bugs.
Types ¶
type CreateForwardRequest ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CreateForward ¶
func (*Service) DeleteForward ¶
func (*Service) GetForward ¶
func (*Service) ListForwards ¶
func (*Service) TouchLastOpened ¶
func (*Service) UpdateForward ¶
type UpdateForwardRequest ¶
Click to show internal directories.
Click to hide internal directories.