service

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package service implements sentinel endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	sentinelpb.UnimplementedSentinelServer
	// contains filtered or unexported fields
}

Service implements sentinel GRPC server

func New

func New(validator sentinel.Validator, pinner sentinel.Pinner, commiter sentinel.Commiter, headReader thead.Reader,
	ipnsManager ipns.Manager) *Service

New initializes sentinel service

func (*Service) GetHeadCID

GetHeadCID can be used by consumers to fetch head from sentinel

func (*Service) GetHeadIPNS added in v1.1.1

GetHeadCID can be used by consumers to fetch head from sentinel

func (*Service) Publish

Publish is GRPC method that producers can use to add message to topic

Jump to

Keyboard shortcuts

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