crossdockpb

package
v1.42.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCrossdock = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCrossdock   = fmt.Errorf("proto: integer overflow")
)

Functions

func BuildEchoYARPCProcedures

func BuildEchoYARPCProcedures(server EchoYARPCServer) []transport.Procedure

BuildEchoYARPCProcedures prepares an implementation of the Echo service for YARPC registration.

func BuildOnewayYARPCProcedures

func BuildOnewayYARPCProcedures(server OnewayYARPCServer) []transport.Procedure

BuildOnewayYARPCProcedures prepares an implementation of the Oneway service for YARPC registration.

func NewFxEchoYARPCClient

func NewFxEchoYARPCClient(name string, options ...protobuf.ClientOption) interface{}

NewFxEchoYARPCClient provides a EchoYARPCClient to an Fx application using the given name for routing.

fx.Provide(
  crossdockpb.NewFxEchoYARPCClient("service-name"),
  ...
)

func NewFxEchoYARPCProcedures

func NewFxEchoYARPCProcedures() interface{}

NewFxEchoYARPCProcedures provides EchoYARPCServer procedures to an Fx application. It expects a EchoYARPCServer to be present in the container.

fx.Provide(
  crossdockpb.NewFxEchoYARPCProcedures(),
  ...
)

func NewFxOnewayYARPCClient

func NewFxOnewayYARPCClient(name string, options ...protobuf.ClientOption) interface{}

NewFxOnewayYARPCClient provides a OnewayYARPCClient to an Fx application using the given name for routing.

fx.Provide(
  crossdockpb.NewFxOnewayYARPCClient("service-name"),
  ...
)

func NewFxOnewayYARPCProcedures

func NewFxOnewayYARPCProcedures() interface{}

NewFxOnewayYARPCProcedures provides OnewayYARPCServer procedures to an Fx application. It expects a OnewayYARPCServer to be present in the container.

fx.Provide(
  crossdockpb.NewFxOnewayYARPCProcedures(),
  ...
)

func RegisterEchoServer

func RegisterEchoServer(s *grpc.Server, srv EchoServer)

func RegisterOnewayServer

func RegisterOnewayServer(s *grpc.Server, srv OnewayServer)

Types

type EchoClient

type EchoClient interface {
	Echo(ctx context.Context, in *Ping, opts ...grpc.CallOption) (*Pong, error)
}

EchoClient is the client API for Echo service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewEchoClient

func NewEchoClient(cc *grpc.ClientConn) EchoClient

type EchoServer

type EchoServer interface {
	Echo(context.Context, *Ping) (*Pong, error)
}

EchoServer is the server API for Echo service.

type EchoYARPCClient

type EchoYARPCClient interface {
	Echo(context.Context, *Ping, ...yarpc.CallOption) (*Pong, error)
}

EchoYARPCClient is the YARPC client-side interface for the Echo service.

func NewEchoYARPCClient

func NewEchoYARPCClient(clientConfig transport.ClientConfig, options ...protobuf.ClientOption) EchoYARPCClient

NewEchoYARPCClient builds a new YARPC client for the Echo service.

type EchoYARPCServer

type EchoYARPCServer interface {
	Echo(context.Context, *Ping) (*Pong, error)
}

EchoYARPCServer is the YARPC server-side interface for the Echo service.

type FxEchoYARPCClientParams

type FxEchoYARPCClientParams struct {
	fx.In

	Provider    yarpc.ClientConfig
	AnyResolver jsonpb.AnyResolver `name:"yarpcfx" optional:"true"`
}

FxEchoYARPCClientParams defines the input for NewFxEchoYARPCClient. It provides the paramaters to get a EchoYARPCClient in an Fx application.

type FxEchoYARPCClientResult

type FxEchoYARPCClientResult struct {
	fx.Out

	Client EchoYARPCClient
}

FxEchoYARPCClientResult defines the output of NewFxEchoYARPCClient. It provides a EchoYARPCClient to an Fx application.

type FxEchoYARPCProceduresParams

type FxEchoYARPCProceduresParams struct {
	fx.In

	Server      EchoYARPCServer
	AnyResolver jsonpb.AnyResolver `name:"yarpcfx" optional:"true"`
}

FxEchoYARPCProceduresParams defines the input for NewFxEchoYARPCProcedures. It provides the paramaters to get EchoYARPCServer procedures in an Fx application.

type FxEchoYARPCProceduresResult

type FxEchoYARPCProceduresResult struct {
	fx.Out

	Procedures     []transport.Procedure `group:"yarpcfx"`
	ReflectionMeta reflection.ServerMeta `group:"yarpcfx"`
}

FxEchoYARPCProceduresResult defines the output of NewFxEchoYARPCProcedures. It provides EchoYARPCServer procedures to an Fx application.

The procedures are provided to the "yarpcfx" value group. Dig 1.2 or newer must be used for this feature to work.

type FxOnewayYARPCClientParams

type FxOnewayYARPCClientParams struct {
	fx.In

	Provider    yarpc.ClientConfig
	AnyResolver jsonpb.AnyResolver `name:"yarpcfx" optional:"true"`
}

FxOnewayYARPCClientParams defines the input for NewFxOnewayYARPCClient. It provides the paramaters to get a OnewayYARPCClient in an Fx application.

type FxOnewayYARPCClientResult

type FxOnewayYARPCClientResult struct {
	fx.Out

	Client OnewayYARPCClient
}

FxOnewayYARPCClientResult defines the output of NewFxOnewayYARPCClient. It provides a OnewayYARPCClient to an Fx application.

type FxOnewayYARPCProceduresParams

type FxOnewayYARPCProceduresParams struct {
	fx.In

	Server      OnewayYARPCServer
	AnyResolver jsonpb.AnyResolver `name:"yarpcfx" optional:"true"`
}

FxOnewayYARPCProceduresParams defines the input for NewFxOnewayYARPCProcedures. It provides the paramaters to get OnewayYARPCServer procedures in an Fx application.

type FxOnewayYARPCProceduresResult

type FxOnewayYARPCProceduresResult struct {
	fx.Out

	Procedures     []transport.Procedure `group:"yarpcfx"`
	ReflectionMeta reflection.ServerMeta `group:"yarpcfx"`
}

FxOnewayYARPCProceduresResult defines the output of NewFxOnewayYARPCProcedures. It provides OnewayYARPCServer procedures to an Fx application.

The procedures are provided to the "yarpcfx" value group. Dig 1.2 or newer must be used for this feature to work.

type OnewayClient

type OnewayClient interface {
	Echo(ctx context.Context, in *Token, opts ...grpc.CallOption) (*yarpcproto.Oneway, error)
}

OnewayClient is the client API for Oneway service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewOnewayClient

func NewOnewayClient(cc *grpc.ClientConn) OnewayClient

type OnewayServer

type OnewayServer interface {
	Echo(context.Context, *Token) (*yarpcproto.Oneway, error)
}

OnewayServer is the server API for Oneway service.

type OnewayYARPCClient

type OnewayYARPCClient interface {
	Echo(context.Context, *Token, ...yarpc.CallOption) (yarpc.Ack, error)
}

OnewayYARPCClient is the YARPC client-side interface for the Oneway service.

func NewOnewayYARPCClient

func NewOnewayYARPCClient(clientConfig transport.ClientConfig, options ...protobuf.ClientOption) OnewayYARPCClient

NewOnewayYARPCClient builds a new YARPC client for the Oneway service.

type OnewayYARPCServer

type OnewayYARPCServer interface {
	Echo(context.Context, *Token) error
}

OnewayYARPCServer is the YARPC server-side interface for the Oneway service.

type Ping

type Ping struct {
	Beep string `protobuf:"bytes,1,opt,name=beep,proto3" json:"beep,omitempty"`
}

func (*Ping) Descriptor

func (*Ping) Descriptor() ([]byte, []int)

func (*Ping) Equal

func (this *Ping) Equal(that interface{}) bool

func (*Ping) GetBeep

func (m *Ping) GetBeep() string

func (*Ping) GoString

func (this *Ping) GoString() string

func (*Ping) Marshal

func (m *Ping) Marshal() (dAtA []byte, err error)

func (*Ping) MarshalTo

func (m *Ping) MarshalTo(dAtA []byte) (int, error)

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) Reset

func (m *Ping) Reset()

func (*Ping) Size

func (m *Ping) Size() (n int)

func (*Ping) String

func (this *Ping) String() string

func (*Ping) Unmarshal

func (m *Ping) Unmarshal(dAtA []byte) error

func (*Ping) XXX_DiscardUnknown

func (m *Ping) XXX_DiscardUnknown()

func (*Ping) XXX_Marshal

func (m *Ping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Ping) XXX_Merge

func (m *Ping) XXX_Merge(src proto.Message)

func (*Ping) XXX_Size

func (m *Ping) XXX_Size() int

func (*Ping) XXX_Unmarshal

func (m *Ping) XXX_Unmarshal(b []byte) error

type Pong

type Pong struct {
	Boop string `protobuf:"bytes,1,opt,name=boop,proto3" json:"boop,omitempty"`
}

func (*Pong) Descriptor

func (*Pong) Descriptor() ([]byte, []int)

func (*Pong) Equal

func (this *Pong) Equal(that interface{}) bool

func (*Pong) GetBoop

func (m *Pong) GetBoop() string

func (*Pong) GoString

func (this *Pong) GoString() string

func (*Pong) Marshal

func (m *Pong) Marshal() (dAtA []byte, err error)

func (*Pong) MarshalTo

func (m *Pong) MarshalTo(dAtA []byte) (int, error)

func (*Pong) ProtoMessage

func (*Pong) ProtoMessage()

func (*Pong) Reset

func (m *Pong) Reset()

func (*Pong) Size

func (m *Pong) Size() (n int)

func (*Pong) String

func (this *Pong) String() string

func (*Pong) Unmarshal

func (m *Pong) Unmarshal(dAtA []byte) error

func (*Pong) XXX_DiscardUnknown

func (m *Pong) XXX_DiscardUnknown()

func (*Pong) XXX_Marshal

func (m *Pong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Pong) XXX_Merge

func (m *Pong) XXX_Merge(src proto.Message)

func (*Pong) XXX_Size

func (m *Pong) XXX_Size() int

func (*Pong) XXX_Unmarshal

func (m *Pong) XXX_Unmarshal(b []byte) error

type Token

type Token struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}

func (*Token) Descriptor

func (*Token) Descriptor() ([]byte, []int)

func (*Token) Equal

func (this *Token) Equal(that interface{}) bool

func (*Token) GetValue

func (m *Token) GetValue() string

func (*Token) GoString

func (this *Token) GoString() string

func (*Token) Marshal

func (m *Token) Marshal() (dAtA []byte, err error)

func (*Token) MarshalTo

func (m *Token) MarshalTo(dAtA []byte) (int, error)

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) Reset

func (m *Token) Reset()

func (*Token) Size

func (m *Token) Size() (n int)

func (*Token) String

func (this *Token) String() string

func (*Token) Unmarshal

func (m *Token) Unmarshal(dAtA []byte) error

func (*Token) XXX_DiscardUnknown

func (m *Token) XXX_DiscardUnknown()

func (*Token) XXX_Marshal

func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Token) XXX_Merge

func (m *Token) XXX_Merge(src proto.Message)

func (*Token) XXX_Size

func (m *Token) XXX_Size() int

func (*Token) XXX_Unmarshal

func (m *Token) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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