gateway

package
v0.0.0-...-ae8e89f Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotImplemented = xerrors.New("not implemented")
)

Functions

func IsRetryableCode

func IsRetryableCode(code codes.Code) bool

func WithClientID

func WithClientID(clientID string) fx.Option

func WithServerAddress

func WithServerAddress(serverAddress string) fx.Option

Types

type Client

type Client = api.ChainStorageClient

func NewChainstorageClient

func NewChainstorageClient(params Params) (Client, error)

type ClientOption

type ClientOption func(cfg *clientConfig)

type GrpcError

type GrpcError interface {
	Error() string
	GRPCStatus() *status.Status
}

GrpcError defines the interface of an error returned by "google.golang.org/grpc/status". See https://dev.to/khepin/go-1-13-errors-and-grpc-errors-1gik for more details.

type Params

type Params struct {
	fx.In
	fxparams.Params
	Lifecycle fx.Lifecycle
	Manager   services.SystemManager
	Options   []ClientOption `group:"options"`
}

Jump to

Keyboard shortcuts

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