screenshot

package
v0.0.0-...-f80617b Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 4 Imported by: 0

README

UC-2: Made screenshot from URL

sequenceDiagram
  participant C as Client
  participant S as Screenshot Service
  participant Browser as Headless Browser
  participant S3 as S3 Storage (Minio)
  
  C->>S: Request to take screenshot (URL)
  S->>Browser: Navigate to URL
  Browser-->>S: Rendered Page
  S->>S: Capture screenshot
  S->>S3: Save screenshot to S3 (Minio)
  S3-->>S: Confirm save
  S-->>C: Return screenshot status/location

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UC

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

UC is a use case for screenshot

func New

func New(ctx context.Context, media *s3Repository.Service) (*UC, error)

func (*UC) Get

func (s *UC) Get(ctx context.Context, linkURL string) (*url.URL, error)

func (*UC) Set

func (s *UC) Set(ctx context.Context, linkURL string) error

Jump to

Keyboard shortcuts

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