Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
func (*Logger) HandlerFunc ¶
func (l *Logger) HandlerFunc() gin.HandlerFunc
type PrivateKey ¶
type PrivateKey struct { *rsa.PrivateKey PublicKeyPEM string }
func (*PrivateKey) DecryptBase64 ¶
func (k *PrivateKey) DecryptBase64(s string) ([]byte, error)
func (*PrivateKey) SignBase64 ¶
func (k *PrivateKey) SignBase64(msg []byte) (string, error)
type Secret ¶
type Secret struct { Server *PrivateKey Client map[string]*PublicKey }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) LoadSecret ¶
Click to show internal directories.
Click to hide internal directories.