Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Health ¶
type Health interface {
Ready() bool
}
Health interface for a service that had a ready func
type ResponseStatusWriter ¶
type ResponseStatusWriter interface { http.ResponseWriter Status() int }
ResponseStatusWriter wraps http.ResponseWriter to save HTTP status code
func NewResponseStatusWriter ¶
func NewResponseStatusWriter(w http.ResponseWriter) ResponseStatusWriter
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server struct containing the information necessary to run a tezos remote signers
func NewServer ¶
func NewServer(signatory Signer, config *config.ServerConfig, logger log.FieldLogger) *Server
NewServer create a new server struct
func (*Server) GetKey ¶
func (server *Server) GetKey(w http.ResponseWriter, r *http.Request)
GetKey s the HTTP request handler that get the public key from a public key hash
type Signer ¶
type Signer interface { Sign(ctx context.Context, keyHash string, message []byte) (string, error) GetPublicKey(ctx context.Context, keyHash string) (string, error) }
Signer interface representing a Signer
type UtilityServer ¶
type UtilityServer struct {
// contains filtered or unexported fields
}
UtilityServer struct containing the information necessary to run a utility endpoints
func NewUtilityServer ¶
func NewUtilityServer(config *config.ServerConfig, healthService []Health) *UtilityServer
NewUtilityServer create a new utility server struct
func (*UtilityServer) Serve ¶
func (u *UtilityServer) Serve() error
Serve start the server and register route
func (*UtilityServer) ShutdownAfter ¶
func (u *UtilityServer) ShutdownAfter(ctx context.Context, afterFunc func()) error
ShutdownAfter shutdown the server after executing afterFunc
Click to show internal directories.
Click to hide internal directories.