server

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Overview

Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BCDBHTTPServer

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

BCDBHTTPServer holds the database and http server objects

func New

New creates a object of BCDBHTTPServer

func (*BCDBHTTPServer) IsLeader

func (s *BCDBHTTPServer) IsLeader() *ierrors.NotLeaderError

func (*BCDBHTTPServer) Port

func (s *BCDBHTTPServer) Port() (port string, err error)

Port returns port number server allocated to run on

func (*BCDBHTTPServer) Start

func (s *BCDBHTTPServer) Start() error

Start starts the server

func (*BCDBHTTPServer) Stop

func (s *BCDBHTTPServer) Stop() error

Stop stops the server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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