server

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServer

type HTTPServer interface {
	ListenAndServe() error
	Shutdown(ctx context.Context) error
}

HTTPServer represents a subset of http.Server methods

type Server

type Server struct {
	Auth    auth.AuthorizedKeysStorage
	MidWare *middlewares.JWTMiddleware
	Signer  Signer
	Address string
	Logger  log.FieldLogger
}

Server struct containing the information necessary to run a tezos remote signers

func (*Server) Handler

func (s *Server) Handler() (http.Handler, error)

Handler returns new Signatory HTTP API handler

func (*Server) New

func (s *Server) New() (*http.Server, error)

New returns a new http server with Signatory HTTP API handler. See Handler

type Signer

type Signer interface {
	Sign(ctx context.Context, req *signatory.SignRequest) (crypt.Signature, error)
	GetPublicKey(ctx context.Context, keyHash crypt.PublicKeyHash) (*signatory.PublicKey, error)
}

Signer interface representing a Signer (currently implemented by Signatory)

type UtilityServer

type UtilityServer struct {
	Address string
	Health  vault.ReadinessChecker
	Logger  log.FieldLogger
	// contains filtered or unexported fields
}

UtilityServer struct containing the information necessary to run a utility endpoints

func (*UtilityServer) New

func (u *UtilityServer) New() HTTPServer

New returns a new http server with registered routes

Jump to

Keyboard shortcuts

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