dynamic

package
v1.5.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parameter

type Parameter interface {
	// contains filtered or unexported methods
}

Parameter is the interface for service parameters.

func WithLocation

func WithLocation(location string) Parameter

WithLocation sets the location from which to fetch graffiti.

func WithLogLevel

func WithLogLevel(logLevel zerolog.Level) Parameter

WithLogLevel sets the log level for the module.

func WithMajordomo

func WithMajordomo(majordomo majordomo.Service) Parameter

WithMajordomo sets majordomo for the module.

type Service

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

Service is a graffiti provider service.

func New

func New(_ context.Context, params ...Parameter) (*Service, error)

New creates a new graffiti provider service.

func (*Service) Graffiti

func (s *Service) Graffiti(ctx context.Context, slot phase0.Slot, validatorIndex phase0.ValidatorIndex) ([]byte, error)

Graffiti provides graffiti.

Jump to

Keyboard shortcuts

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