Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { // Code identifies the error and enables an easier client-side error handling. Code int `json:"code"` // Message describes the error in English. Typically it is set to // `err.Error()`. This field is required. Message string `json:"message"` }
Error is a type that is encoded as JSON and returned in an API response in the event of an error.
type Portal ¶
type Portal struct {
// contains filtered or unexported fields
}
Portal contains the information related to the server.
func New ¶
func New(config *persist.SatdConfig, db *sql.DB, m modules.Manager, p modules.Provider, dir string) (*Portal, error)
New returns an initialized portal server.
func (*Portal) GetCredits ¶
func (p *Portal) GetCredits() modules.CreditData
GetCredits retrieves the credit data.
func (*Portal) SetCredits ¶
func (p *Portal) SetCredits(c modules.CreditData)
SetCredits updates the credit data.
Click to show internal directories.
Click to hide internal directories.