mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-21 21:17:13 +02:00
registry: implement redis backend (#2179)
This commit is contained in:
parent
28155314e9
commit
a54d43b937
21 changed files with 772 additions and 64 deletions
20
internal/registry/redis/lua/lua.go
Normal file
20
internal/registry/redis/lua/lua.go
Normal file
|
@ -0,0 +1,20 @@
|
|||
// Package lua contains lua source code.
|
||||
package lua
|
||||
|
||||
import (
|
||||
"embed"
|
||||
)
|
||||
|
||||
//go:embed registry.lua
|
||||
var fs embed.FS
|
||||
|
||||
// Registry is the registry lua script
|
||||
var Registry string
|
||||
|
||||
func init() {
|
||||
bs, err := fs.ReadFile("registry.lua")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
Registry = string(bs)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue