server

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompressForm

type CompressForm struct {
	PDF *multipart.FileHeader `form:"file" binding:"required,len=1"`
}

type InfoForm added in v0.3.0

type InfoForm struct {
	PDF   *multipart.FileHeader `form:"file" binding:"required,len=1"`
	Pages []string              `form:"pages[]" binding:"required"`
}

type MergeForm

type MergeForm struct {
	PDF []*multipart.FileHeader `form:"file[]" binding:"required,min=2"`
}

type RotateForm

type RotateForm struct {
	PDF      *multipart.FileHeader `form:"file" binding:"required"`
	Rotation int                   `form:"rotation" binding:"required,divisibleby90"`
	Pages    []string              `form:"pages[]" binding:"required"`
}

type Server

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

func New

func New(port int) *Server

func (*Server) Run

func (s *Server) Run()

type SplitForm

type SplitForm struct {
	PDF   *multipart.FileHeader `form:"file" binding:"required,len=1"`
	Pages []string              `form:"pages[]" binding:"required"`
}

Jump to

Keyboard shortcuts

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