host

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package host provides functions for registering the web service APIs and running the sync server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterWebService

func RegisterWebService(s WebService)

Register a web service type.

func Run

func Run()

Start sync server and host all the registered web services.

Types

type WebService

type WebService interface {

	// Attach http handles to http routs.
	Host() bool
}

Service interface that should be implemented by all the services.

Jump to

Keyboard shortcuts

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