protopb

package
v0.1.0-dev4 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SubmitQueueStovepipe_Ping_FullMethodName = "/uber.submitqueue.stovepipe.SubmitQueueStovepipe/Ping"
)

Variables

View Source
var File_stovepipe_proto protoreflect.FileDescriptor
View Source
var SubmitQueueStovepipeReflectionMeta = reflection.ServerMeta{
	ServiceName:     "uber.submitqueue.stovepipe.SubmitQueueStovepipe",
	FileDescriptors: yarpcFileDescriptorClosurefabdb6b3c0b09022,
}

SubmitQueueStovepipeReflectionMeta is the reflection server metadata required for using the gRPC reflection protocol with YARPC.

See https://github.com/grpc/grpc/blob/master/doc/server-reflection.md.

View Source
var SubmitQueueStovepipe_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "uber.submitqueue.stovepipe.SubmitQueueStovepipe",
	HandlerType: (*SubmitQueueStovepipeServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Ping",
			Handler:    _SubmitQueueStovepipe_Ping_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "stovepipe.proto",
}

SubmitQueueStovepipe_ServiceDesc is the grpc.ServiceDesc for SubmitQueueStovepipe service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func BuildSubmitQueueStovepipeYARPCProcedures

func BuildSubmitQueueStovepipeYARPCProcedures(server SubmitQueueStovepipeYARPCServer) []transport.Procedure

BuildSubmitQueueStovepipeYARPCProcedures prepares an implementation of the SubmitQueueStovepipe service for YARPC registration.

func NewFxSubmitQueueStovepipeYARPCClient

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

NewFxSubmitQueueStovepipeYARPCClient provides a SubmitQueueStovepipeYARPCClient to an Fx application using the given name for routing.

fx.Provide(
  protopb.NewFxSubmitQueueStovepipeYARPCClient("service-name"),
  ...
)

func NewFxSubmitQueueStovepipeYARPCProcedures

func NewFxSubmitQueueStovepipeYARPCProcedures() interface{}

NewFxSubmitQueueStovepipeYARPCProcedures provides SubmitQueueStovepipeYARPCServer procedures to an Fx application. It expects a SubmitQueueStovepipeYARPCServer to be present in the container.

fx.Provide(
  protopb.NewFxSubmitQueueStovepipeYARPCProcedures(),
  ...
)

func RegisterSubmitQueueStovepipeServer

func RegisterSubmitQueueStovepipeServer(s grpc.ServiceRegistrar, srv SubmitQueueStovepipeServer)

Types

type FxSubmitQueueStovepipeYARPCClientParams

type FxSubmitQueueStovepipeYARPCClientParams struct {
	fx.In

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

FxSubmitQueueStovepipeYARPCClientParams defines the input for NewFxSubmitQueueStovepipeYARPCClient. It provides the paramaters to get a SubmitQueueStovepipeYARPCClient in an Fx application.

type FxSubmitQueueStovepipeYARPCClientResult

type FxSubmitQueueStovepipeYARPCClientResult struct {
	fx.Out

	Client SubmitQueueStovepipeYARPCClient
}

FxSubmitQueueStovepipeYARPCClientResult defines the output of NewFxSubmitQueueStovepipeYARPCClient. It provides a SubmitQueueStovepipeYARPCClient to an Fx application.

type FxSubmitQueueStovepipeYARPCProceduresParams

type FxSubmitQueueStovepipeYARPCProceduresParams struct {
	fx.In

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

FxSubmitQueueStovepipeYARPCProceduresParams defines the input for NewFxSubmitQueueStovepipeYARPCProcedures. It provides the paramaters to get SubmitQueueStovepipeYARPCServer procedures in an Fx application.

type FxSubmitQueueStovepipeYARPCProceduresResult

type FxSubmitQueueStovepipeYARPCProceduresResult struct {
	fx.Out

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

FxSubmitQueueStovepipeYARPCProceduresResult defines the output of NewFxSubmitQueueStovepipeYARPCProcedures. It provides SubmitQueueStovepipeYARPCServer 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 PingRequest

type PingRequest struct {

	// Optional message to include in the ping
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

PingRequest is the request for the Ping method

func (*PingRequest) Descriptor deprecated

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

Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.

func (*PingRequest) GetMessage

func (x *PingRequest) GetMessage() string

func (*PingRequest) ProtoMessage

func (*PingRequest) ProtoMessage()

func (*PingRequest) ProtoReflect

func (x *PingRequest) ProtoReflect() protoreflect.Message

func (*PingRequest) Reset

func (x *PingRequest) Reset()

func (*PingRequest) String

func (x *PingRequest) String() string

type PingResponse

type PingResponse struct {

	// The response message
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// The service name that handled the request
	ServiceName string `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	// Timestamp of when the ping was received
	Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Hostname of the server that handled the request
	Hostname string `protobuf:"bytes,4,opt,name=hostname,proto3" json:"hostname,omitempty"`
	// contains filtered or unexported fields
}

PingResponse is the response for the Ping method

func (*PingResponse) Descriptor deprecated

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

Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.

func (*PingResponse) GetHostname

func (x *PingResponse) GetHostname() string

func (*PingResponse) GetMessage

func (x *PingResponse) GetMessage() string

func (*PingResponse) GetServiceName

func (x *PingResponse) GetServiceName() string

func (*PingResponse) GetTimestamp

func (x *PingResponse) GetTimestamp() int64

func (*PingResponse) ProtoMessage

func (*PingResponse) ProtoMessage()

func (*PingResponse) ProtoReflect

func (x *PingResponse) ProtoReflect() protoreflect.Message

func (*PingResponse) Reset

func (x *PingResponse) Reset()

func (*PingResponse) String

func (x *PingResponse) String() string

type SubmitQueueStovepipeClient

type SubmitQueueStovepipeClient interface {
	// Ping returns a response indicating the service is alive
	Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
}

SubmitQueueStovepipeClient is the client API for SubmitQueueStovepipe service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

SubmitQueueStovepipe provides the stovepipe API

type SubmitQueueStovepipeServer

type SubmitQueueStovepipeServer interface {
	// Ping returns a response indicating the service is alive
	Ping(context.Context, *PingRequest) (*PingResponse, error)
	// contains filtered or unexported methods
}

SubmitQueueStovepipeServer is the server API for SubmitQueueStovepipe service. All implementations must embed UnimplementedSubmitQueueStovepipeServer for forward compatibility.

SubmitQueueStovepipe provides the stovepipe API

type SubmitQueueStovepipeYARPCClient

type SubmitQueueStovepipeYARPCClient interface {
	Ping(context.Context, *PingRequest, ...yarpc.CallOption) (*PingResponse, error)
}

SubmitQueueStovepipeYARPCClient is the YARPC client-side interface for the SubmitQueueStovepipe service.

func NewSubmitQueueStovepipeYARPCClient

func NewSubmitQueueStovepipeYARPCClient(clientConfig transport.ClientConfig, options ...protobuf.ClientOption) SubmitQueueStovepipeYARPCClient

NewSubmitQueueStovepipeYARPCClient builds a new YARPC client for the SubmitQueueStovepipe service.

type SubmitQueueStovepipeYARPCServer

type SubmitQueueStovepipeYARPCServer interface {
	Ping(context.Context, *PingRequest) (*PingResponse, error)
}

SubmitQueueStovepipeYARPCServer is the YARPC server-side interface for the SubmitQueueStovepipe service.

type UnimplementedSubmitQueueStovepipeServer

type UnimplementedSubmitQueueStovepipeServer struct{}

UnimplementedSubmitQueueStovepipeServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedSubmitQueueStovepipeServer) Ping

type UnsafeSubmitQueueStovepipeServer

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

UnsafeSubmitQueueStovepipeServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SubmitQueueStovepipeServer will result in compilation errors.

Jump to

Keyboard shortcuts

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