Documentation ¶
Index ¶
- type PasteEndPoint
- func (endPoint *PasteEndPoint) BaseURI() string
- func (endPoint *PasteEndPoint) CreatePaste(r *http.Request) (*model.Paste, error)
- func (endPoint *PasteEndPoint) GetPaste(r *http.Request) (*model.Paste, error)
- func (endPoint *PasteEndPoint) GetPastes(r *http.Request) ([]*model.Paste, error)
- func (endPoint *PasteEndPoint) URI() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PasteEndPoint ¶
type PasteEndPoint struct {
// contains filtered or unexported fields
}
PasteEndPoint represents a REST API endpoint for retrieving pastes.
func NewPasteEndPoint ¶
func NewPasteEndPoint(store *model.PasteStore) *PasteEndPoint
NewPasteEndPoint creates a new REST API endpoint for pastes.
func (*PasteEndPoint) BaseURI ¶
func (endPoint *PasteEndPoint) BaseURI() string
BaseURI returns the base URI of the end point.
func (*PasteEndPoint) CreatePaste ¶
CreatePaste creates a new paste.
func (*PasteEndPoint) URI ¶
func (endPoint *PasteEndPoint) URI() string
URI returns the URI of the end point.
Click to show internal directories.
Click to hide internal directories.