Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthResponse ¶
type Error ¶
type PaginationResponse ¶
type Paste ¶
type Paste struct { ID string `json:"id,omitempty"` Views int `json:"views,omitempty"` Encrypted bool `json:"encrypted,omitempty"` Description string `json:"description,omitempty"` Sections []*Section `json:"sections"` CreatedAt time.Time `json:"created_at"` ExpiresAt time.Time `json:"expires_at"` }
type PasteGetOptions ¶
type PasteGetResponse ¶
type PasteListOptions ¶
type PasteListResponse ¶
type PasteListResponse struct { *PaginationResponse Data []*Paste `json:"data"` }
type PasteResponse ¶
type Pastee ¶
func (*Pastee) Authenticate ¶
func (p *Pastee) Authenticate(username, password string) (*AuthResponse, error)
func (*Pastee) List ¶
func (p *Pastee) List(opts ...PasteListOptions) (*PasteListResponse, error)
func (*Pastee) Submit ¶
func (p *Pastee) Submit(paste *Paste) (*PasteResponse, error)
Click to show internal directories.
Click to hide internal directories.