coreapi

package
v0.79.0-preview.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrServiceDisabled = errors.New("service disabled")

Functions

This section is empty.

Types

type Config

type Config struct {
	LogLevel          encoding.LogLevel
	Accounts          bool
	Assets            bool
	NetworkParameters bool
	NetworkLimits     bool
	Parties           bool
	Validators        bool
	Proposals         bool
	Markets           bool
	Votes             bool
	MarketsData       bool
	PartiesStake      bool
	Delegations       bool
}

func NewDefaultConfig

func NewDefaultConfig() Config

type Service

type Service struct {
	apipb.UnimplementedCoreStateServiceServer
	// contains filtered or unexported fields
}

func NewService

func NewService(
	ctx context.Context, log *logging.Logger, cfg Config, broker broker.Interface,
) *Service

func (*Service) ListAccounts

func (*Service) ListAssets

func (*Service) ListDelegations

func (*Service) ListMarkets

func (*Service) ListMarketsData

func (*Service) ListNetworkLimits

func (*Service) ListParties

func (*Service) ListPartiesStake

func (*Service) ListProposals

func (*Service) ListValidators

func (*Service) ListVotes

func (s *Service) ListVotes(
	ctx context.Context, in *apipb.ListVotesRequest,
) (*apipb.ListVotesResponse, error)

func (*Service) UpdateBroker

func (s *Service) UpdateBroker(broker broker.Interface)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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