Versions in this module Expand all Collapse all v1 v1.0.2 Aug 16, 2022 v1.0.1 Aug 8, 2022 Changes in this version + type Authorization interface + CheckAuth func(s *RPCServer, r *http.Request) bool + GetAuthType func() RPCAuthType + func NewUserPassword(username string, passwordHash string) Authorization + type RPCAuthType byte + const UsernamePassword + type RPCServer struct + func NewServer(localNode *node.LocalNode, wallet *vault.Wallet) *RPCServer + func (s *RPCServer) GetLocalNode() *node.LocalNode + func (s *RPCServer) GetNetNode() *node.LocalNode + func (s *RPCServer) Handle(w http.ResponseWriter, r *http.Request) + func (s *RPCServer) HandleFunc(pattern string, handler common.Handler) + func (s *RPCServer) SetDefaultFunc(def func(http.ResponseWriter, *http.Request)) + func (s *RPCServer) SetLocalNode(ln *node.LocalNode) + func (s *RPCServer) Start(httpsCertReady chan struct{}) + type ServeMux struct + type UserPassword struct + PasswordHash string + Username string + func (up *UserPassword) CheckAuth(s *RPCServer, r *http.Request) bool + func (up *UserPassword) GetAuthType() RPCAuthType