pat

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SignRequest

func SignRequest(hexPrivKey string, req *http.Request) error

Types

type CreateRequest

type CreateRequest struct {
	Description string `json:"description"`
	PubKey      string `json:"pubKey"`
}

func (CreateRequest) ToModel

func (p CreateRequest) ToModel(userID string) models.PAT

type PatController

type PatController struct {
	// contains filtered or unexported fields
}

func NewHttpController

func NewHttpController(repository repository) *PatController

func (*PatController) Create

func (p *PatController) Create(c core.Context) error

func (*PatController) Delete

func (p *PatController) Delete(c core.Context) error

func (*PatController) List

func (p *PatController) List(c core.Context) error

type PatService

type PatService struct {
	// contains filtered or unexported fields
}

func NewPatService

func NewPatService(repository repository) *PatService

func (*PatService) VerifyRequestSignature

func (p *PatService) VerifyRequestSignature(req *http.Request) (string, error)

Jump to

Keyboard shortcuts

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