Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct {
Id string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
System bool `json:"system"`
Fields []CollectionField `json:"fields"`
}
func (Collection) String ¶
func (collection Collection) String() string
type CollectionField ¶
type CollectionsResponse ¶
type CollectionsResponse struct {
Items []Collection `json:"items"`
}
type PocketBase ¶
type PocketBase struct {
// contains filtered or unexported fields
}
func New ¶
func New(Credentials *credentials.Credentials) *PocketBase
func (*PocketBase) Authenticate ¶
func (pocketBase *PocketBase) Authenticate() error
func (*PocketBase) DoWithAuth ¶
func (*PocketBase) GetApiUrl ¶
func (pocketBase *PocketBase) GetApiUrl(suffix string) string
func (*PocketBase) GetCollections ¶
func (pocketBase *PocketBase) GetCollections() (*CollectionsResponse, error)
Click to show internal directories.
Click to hide internal directories.