Documentation ¶
Index ¶
- type App
- func (app *App) AddRoute(method, path string, handler gin.HandlerFunc)
- func (app *App) Close()
- func (app *App) CompactSerial(x interface{}) (string, error)
- func (app *App) Decrypt(key, ciphertext []byte) ([]byte, error)
- func (app *App) Encrypt(key, payload []byte) ([]byte, error)
- func (app *App) ExpandSerial(serial []byte, dst interface{}) error
- func (app *App) GetBucket(bucketName string) (*storage.BucketHandle, error)
- func (app *App) GetJSON(url string, dst interface{}) error
- func (app *App) GetObject(bucket *storage.BucketHandle, objectName string) ([]byte, error)
- func (app *App) GetObjectAndUnmarshal(bucket *storage.BucketHandle, objectName string, dst interface{}) error
- func (app *App) Graph(dbNames ...string) *graph.GraphClient
- func (app *App) MarshalCBOR(x interface{}) ([]byte, error)
- func (app *App) MarshalJSON(x interface{}) ([]byte, error)
- func (app *App) OptionsHandler(c *gin.Context)
- func (app *App) PostJSON(url string, src, dst interface{}) error
- func (app *App) SHA1(b []byte) []byte
- func (app *App) SHA256(b ...[]byte) []byte
- func (app *App) SeedDigest(input string) string
- func (app *App) Serve() error
- func (app *App) ShowRoutes() interface{}
- func (app *App) TimeNow() time.Time
- func (api *App) Token256() string
- func (app *App) UnmarshalCBOR(b []byte, dst interface{}) error
- func (app *App) UnmarshalJSON(b []byte, dst interface{}) error
- func (app *App) UseCBOR()
- type Route
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Gin *gin.Engine Storage *storage.Client Firestore *firestore.Client sync.RWMutex // contains filtered or unexported fields }
func (*App) CompactSerial ¶
func (*App) ExpandSerial ¶
func (*App) GetObjectAndUnmarshal ¶
func (app *App) GetObjectAndUnmarshal(bucket *storage.BucketHandle, objectName string, dst interface{}) error
func (*App) MarshalCBOR ¶
func (*App) MarshalJSON ¶
func (*App) OptionsHandler ¶
func (*App) SeedDigest ¶
func (*App) ShowRoutes ¶
func (app *App) ShowRoutes() interface{}
func (*App) UnmarshalCBOR ¶
func (*App) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.