Documentation ¶
Index ¶
- func BasicAuthWithAttemptsControl(creds Credentials) gin.HandlerFunc
- func FixPath(p string) string
- type Credentials
- type Midgard
- func (m *Midgard) AllocateURL(c *gin.Context)
- func (m *Midgard) Code(c *gin.Context)
- func (m *Midgard) Code2img(c *gin.Context)
- func (m *Midgard) GetFromUniversalClipboard(c *gin.Context)
- func (m *Midgard) PingPong(c *gin.Context)
- func (m *Midgard) PutToUniversalClipboard(c *gin.Context)
- func (m *Midgard) Serve()
- func (m *Midgard) Subscribe(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasicAuthWithAttemptsControl ¶
func BasicAuthWithAttemptsControl(creds Credentials) gin.HandlerFunc
BasicAuthWithAttemptsControl offers basic auth with maximum failure control.
Types ¶
type Credentials ¶
Credentials is the basic auth authentication credentials
type Midgard ¶
type Midgard struct {
// contains filtered or unexported fields
}
Midgard is the midgard server that serves all API endpoints.
func (*Midgard) AllocateURL ¶
AllocateURL generates an universal access URL for the requested resource. The requested resource can be an attached data, the midgard universal clipboard, and etc.
func (*Midgard) GetFromUniversalClipboard ¶
GetFromUniversalClipboard returns the in-memory clipboard data inside the midgard server
func (*Midgard) PutToUniversalClipboard ¶
PutToUniversalClipboard saves data to the in-memory clipboard data inside the midgrad server.
Click to show internal directories.
Click to hide internal directories.