github.com/mysteriumnetwork/node@v0.0.0-20240516044423-365054f76801/ui/noop/noop.go (about)

     1  /*
     2   * Copyright (C) 2019 The "MysteriumNetwork/node" Authors.
     3   *
     4   * This program is free software: you can redistribute it and/or modify
     5   * it under the terms of the GNU General Public License as published by
     6   * the Free Software Foundation, either version 3 of the License, or
     7   * (at your option) any later version.
     8   *
     9   * This program is distributed in the hope that it will be useful,
    10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
    11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    12   * GNU General Public License for more details.
    13   *
    14   * You should have received a copy of the GNU General Public License
    15   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
    16   */
    17  
    18  package noop
    19  
    20  import (
    21  	"github.com/rs/zerolog/log"
    22  )
    23  
    24  // Server doesn't do much really
    25  type Server struct {
    26  }
    27  
    28  // NewServer returns a new noop server
    29  func NewServer() *Server {
    30  	return &Server{}
    31  }
    32  
    33  // Serve blocks
    34  func (s *Server) Serve() {
    35  	log.Debug().Msg("Start: NOOP UI server")
    36  }
    37  
    38  // Stop stops the blocking of serve
    39  func (s *Server) Stop() {
    40  	log.Debug().Msg("Stop: NOOP UI server")
    41  }
    42  
    43  // SwitchUI switch nodeUI version
    44  func (s *Server) SwitchUI(path string) {
    45  	log.Debug().Msg("SwitchUI: NOOP UI server")
    46  }