grpc

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register()

Register adds the grpc:// and grpcs:// squasher plugins to the substreams squash registry, the same way dauth/grpc.Register adds grpc:// for auth.

Types

type Client

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

Client calls a remote Squasher over gRPC and implements squash.Client.

func Dial

func Dial(endpoint string, opts DialOptions) (*Client, func() error, error)

func (*Client) Squash

func (c *Client) Squash(ctx context.Context, req squash.Request) (*squash.Result, error)

type DialOptions

type DialOptions struct {
	PlainText bool
	Insecure  bool
	Secret    string
}

Jump to

Keyboard shortcuts

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