browser_items

package
v0.0.0-...-b5214bf Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrowserProxy

type BrowserProxy struct {
	config.Config
}

func (BrowserProxy) Get

TODO refactor common out

func (BrowserProxy) GetAll

TODO refactor common out

func (BrowserProxy) Put

TODO refactor common out

func (BrowserProxy) PutAll

TODO refactor common out

type BrowserRequestGet

type BrowserRequestGet struct{}

func (BrowserRequestGet) MakeHTTPRequest

func (BrowserRequestGet) MakeHTTPRequest() (req *http.Request, err error)

type BrowserRequestPut

type BrowserRequestPut RequestPayloadPut

func (BrowserRequestPut) MakeHTTPRequest

func (br BrowserRequestPut) MakeHTTPRequest() (req *http.Request, err error)

type HTTPResponseWithRequestPayloadGet

type HTTPResponseWithRequestPayloadGet struct {
	*http.Response
	RequestPayloadGet
}

type HTTPResponseWithRequestPayloadPut

type HTTPResponseWithRequestPayloadPut struct {
	*http.Response
	RequestPayloadPut
}

type Item

type Item struct {
	Id         ItemId `json:"id"`
	Url        Url    `json:"url"`
	Date       string `json:"date"`
	Title      string `json:"title"`
	ExternalId string `json:"external_id"` // external to the browser, so for us, it's actually our id
}

type ItemId

type ItemId struct {
	config.BrowserId `json:"browser"`
	Type             string `json:"type"`
	Id               string `json:"id"`
}

func (*ItemId) Set

func (ii *ItemId) Set(v string) (err error)

func (ItemId) String

func (bi ItemId) String() string

type RequestPayloadGet

type RequestPayloadGet []Item

type RequestPayloadPut

type RequestPayloadPut struct {
	Deleted []Item `json:"deleted"`
	Added   []Item `json:"added"`
}

type Url

type Url struct {
	url.URL
}

func (*Url) MarshalText

func (u *Url) MarshalText() (b []byte, err error)

func (*Url) Set

func (u *Url) Set(v string) (err error)

func (*Url) UnmarshalText

func (u *Url) UnmarshalText(b []byte) (err error)

Jump to

Keyboard shortcuts

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