rest

package
v0.0.0-...-086ba71 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

Author defines model for author

type Error

type Error struct {
	Message string `json:"message"`
}

Error defines resposne for errors

type Link struct {
	ID  int64  `json:"id"`
	URL string `json:"url"`
}

Link defines urls to external resources

type Page

type Page struct {
	ID        int64     `json:"id"`
	Title     string    `json:"title"`
	Body      string    `json:"body"`
	AuthorID  int64     `json:"author_id"`
	Links     []string  `json:"links"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

type Response

type Response struct {
	Data json.RawMessage `json:"data"`
}

Response defines data for response

Jump to

Keyboard shortcuts

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