pogifyapi

package module
v2.0.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2021 License: AGPL-3.0 Imports: 23 Imported by: 1

README

PkgGoDev codecov Deployment

pogify-api

Go implementation of pogify's cloud functions

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Server

func Server(rr *gin.RouterGroup)

Server sets routes for api

Types

type SessionClaim

type SessionClaim struct {
	SessionID string `json:"sessionId" binding:"required"`
	Issued    Time   `json:"issued" binding:"required"`
	Checksum  string `json:"checksum" binding:"required"`
	Solution  string `json:"solution" binding:"required"`
	Hash      string `json:"hash" binding:"required"`
}

type Time

type Time time.Time

Time is a JSON un/marshallable type of time.Time

func (Time) MarshalJSON

func (t Time) MarshalJSON() ([]byte, error)

MarshalJSON is used to convert the timestamp to JSON

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(s []byte) (err error)

UnmarshalJSON is used to convert the timestamp from JSON

Jump to

Keyboard shortcuts

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