elizav1grpc

package
v1.3.0-20230913231627-... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ElizaService_Say_FullMethodName       = "/connectrpc.eliza.v1.ElizaService/Say"
	ElizaService_Converse_FullMethodName  = "/connectrpc.eliza.v1.ElizaService/Converse"
	ElizaService_Introduce_FullMethodName = "/connectrpc.eliza.v1.ElizaService/Introduce"
)

Variables

View Source
var ElizaService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "connectrpc.eliza.v1.ElizaService",
	HandlerType: (*ElizaServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Say",
			Handler:    _ElizaService_Say_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Converse",
			Handler:       _ElizaService_Converse_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
		{
			StreamName:    "Introduce",
			Handler:       _ElizaService_Introduce_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "connectrpc/eliza/v1/eliza.proto",
}

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

Functions

func RegisterElizaServiceServer

func RegisterElizaServiceServer(s grpc.ServiceRegistrar, srv ElizaServiceServer)

Types

type ElizaServiceClient

type ElizaServiceClient interface {
	// Say is a unary RPC. Eliza responds to the prompt with a single sentence.
	Say(ctx context.Context, in *v1.SayRequest, opts ...grpc.CallOption) (*v1.SayResponse, error)
	// Converse is a bidirectional RPC. The caller may exchange multiple
	// back-and-forth messages with Eliza over a long-lived connection. Eliza
	// responds to each ConverseRequest with a ConverseResponse.
	Converse(ctx context.Context, opts ...grpc.CallOption) (ElizaService_ConverseClient, error)
	// Introduce is a server streaming RPC. Given the caller's name, Eliza
	// returns a stream of sentences to introduce itself.
	Introduce(ctx context.Context, in *v1.IntroduceRequest, opts ...grpc.CallOption) (ElizaService_IntroduceClient, error)
}

ElizaServiceClient is the client API for ElizaService 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.

func NewElizaServiceClient

func NewElizaServiceClient(cc grpc.ClientConnInterface) ElizaServiceClient

type ElizaServiceServer

type ElizaServiceServer interface {
	// Say is a unary RPC. Eliza responds to the prompt with a single sentence.
	Say(context.Context, *v1.SayRequest) (*v1.SayResponse, error)
	// Converse is a bidirectional RPC. The caller may exchange multiple
	// back-and-forth messages with Eliza over a long-lived connection. Eliza
	// responds to each ConverseRequest with a ConverseResponse.
	Converse(ElizaService_ConverseServer) error
	// Introduce is a server streaming RPC. Given the caller's name, Eliza
	// returns a stream of sentences to introduce itself.
	Introduce(*v1.IntroduceRequest, ElizaService_IntroduceServer) error
}

ElizaServiceServer is the server API for ElizaService service. All implementations should embed UnimplementedElizaServiceServer for forward compatibility

type ElizaService_ConverseClient

type ElizaService_ConverseClient interface {
	Send(*v1.ConverseRequest) error
	Recv() (*v1.ConverseResponse, error)
	grpc.ClientStream
}

type ElizaService_ConverseServer

type ElizaService_ConverseServer interface {
	Send(*v1.ConverseResponse) error
	Recv() (*v1.ConverseRequest, error)
	grpc.ServerStream
}

type ElizaService_IntroduceClient

type ElizaService_IntroduceClient interface {
	Recv() (*v1.IntroduceResponse, error)
	grpc.ClientStream
}

type ElizaService_IntroduceServer

type ElizaService_IntroduceServer interface {
	Send(*v1.IntroduceResponse) error
	grpc.ServerStream
}

type UnimplementedElizaServiceServer

type UnimplementedElizaServiceServer struct {
}

UnimplementedElizaServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedElizaServiceServer) Converse

func (UnimplementedElizaServiceServer) Introduce

func (UnimplementedElizaServiceServer) Say

type UnsafeElizaServiceServer

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

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

Jump to

Keyboard shortcuts

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