thumbnail

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: Apache-2.0 Imports: 11 Imported by: 1 module, 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

View Source
var File_proto_thumbnail_proto protoreflect.FileDescriptor

Functions

func NewThumbnailEndpoints

func NewThumbnailEndpoints() []*api.Endpoint

func RegisterThumbnailHandler

func RegisterThumbnailHandler(s server.Server, hdlr ThumbnailHandler, opts ...server.HandlerOption) error

Types

type ScreenshotRequest

type ScreenshotRequest struct {
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// width of the browser window. optional
	Width int32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"`
	// height of the browser window, optional
	Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

func (*ScreenshotRequest) Descriptor deprecated

func (*ScreenshotRequest) Descriptor() ([]byte, []int)

Deprecated: Use ScreenshotRequest.ProtoReflect.Descriptor instead.

func (*ScreenshotRequest) GetHeight

func (x *ScreenshotRequest) GetHeight() int32

func (*ScreenshotRequest) GetUrl

func (x *ScreenshotRequest) GetUrl() string

func (*ScreenshotRequest) GetWidth

func (x *ScreenshotRequest) GetWidth() int32

func (*ScreenshotRequest) ProtoMessage

func (*ScreenshotRequest) ProtoMessage()

func (*ScreenshotRequest) ProtoReflect

func (x *ScreenshotRequest) ProtoReflect() protoreflect.Message

func (*ScreenshotRequest) Reset

func (x *ScreenshotRequest) Reset()

func (*ScreenshotRequest) String

func (x *ScreenshotRequest) String() string

type ScreenshotResponse

type ScreenshotResponse struct {
	ImageURL string `protobuf:"bytes,1,opt,name=imageURL,proto3" json:"imageURL,omitempty"`
	// contains filtered or unexported fields
}

func (*ScreenshotResponse) Descriptor deprecated

func (*ScreenshotResponse) Descriptor() ([]byte, []int)

Deprecated: Use ScreenshotResponse.ProtoReflect.Descriptor instead.

func (*ScreenshotResponse) GetImageURL

func (x *ScreenshotResponse) GetImageURL() string

func (*ScreenshotResponse) ProtoMessage

func (*ScreenshotResponse) ProtoMessage()

func (*ScreenshotResponse) ProtoReflect

func (x *ScreenshotResponse) ProtoReflect() protoreflect.Message

func (*ScreenshotResponse) Reset

func (x *ScreenshotResponse) Reset()

func (*ScreenshotResponse) String

func (x *ScreenshotResponse) String() string

type ThumbnailHandler

type ThumbnailHandler interface {
	Screenshot(context.Context, *ScreenshotRequest, *ScreenshotResponse) error
}

type ThumbnailService

type ThumbnailService interface {
	Screenshot(ctx context.Context, in *ScreenshotRequest, opts ...client.CallOption) (*ScreenshotResponse, error)
}

func NewThumbnailService

func NewThumbnailService(name string, c client.Client) ThumbnailService

Jump to

Keyboard shortcuts

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