api

package
v0.0.0-...-a26e058 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyResp

type KeyResp struct {
	KeyUuid   string    `json:"key_uuid"`
	KeySecret []string  `json:"key_secret"`
	Date      time.Time `json:"date" copier:"Timestamp"`
}

func (KeyResp) MarshalJSON

func (t KeyResp) MarshalJSON() ([]byte, error)

type Server

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

func NewServer

func NewServer(db *gorm.DB, cfg *config.Server) *Server

func (*Server) GetKeyHandler

func (s *Server) GetKeyHandler(c echo.Context) error

func (*Server) Run

func (s *Server) Run()

func (*Server) SetKeyHandler

func (s *Server) SetKeyHandler(c echo.Context) error

Jump to

Keyboard shortcuts

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