interfaces

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoRegistrar = errors.New("webhook/interfaces: registrar is not set")

Functions

func Initial

func Initial(c *config.Config) error

func Register

func Register(ctx *gin.Context) (uid string, err error)

func SetRegistrar

func SetRegistrar(reg Registrar)

func Token

func Token(ctx *gin.Context) (data any, err error)

Types

type Registrar

type Registrar interface {
	Initial(*config.Config) error
	Token(*gin.Context) (data any, err error)
	Register(*gin.Context) (uid string, err error)
}

Jump to

Keyboard shortcuts

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