grpc: google.golang.org/grpc/internal/balancerload Index | Files

package balancerload

import "google.golang.org/grpc/internal/balancerload"

Package balancerload defines APIs to parse server loads in trailers. The parsed loads are sent to balancers in DoneInfo.

Index

Package Files

load.go

func Parse Uses

func Parse(md metadata.MD) interface{}

Parse calls parser.Read().

func SetParser Uses

func SetParser(lr Parser)

SetParser sets the load parser.

Not mutex-protected, should be called before any gRPC functions.

type Parser Uses

type Parser interface {
    // Parse parses loads from metadata.
    Parse(md metadata.MD) interface{}
}

Parser converts loads from metadata into a concrete type.

Package balancerload imports 1 packages (graph) and is imported by 2 packages. Updated 2019-05-25. Refresh now. Tools for package owners.