proto

package
v0.0.0-...-be0bb2f Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_printer_proto protoreflect.FileDescriptor
View Source
var PrintService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "printer.PrintService",
	HandlerType: (*PrintServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Print",
			Handler:    _PrintService_Print_Handler,
		},
		{
			MethodName: "Clear",
			Handler:    _PrintService_Clear_Handler,
		},
		{
			MethodName: "List",
			Handler:    _PrintService_List_Handler,
		},
		{
			MethodName: "Ping",
			Handler:    _PrintService_Ping_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "printer.proto",
}

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

Functions

func RegisterPrintServiceServer

func RegisterPrintServiceServer(s grpc.ServiceRegistrar, srv PrintServiceServer)

Types

type ClearRequest

type ClearRequest struct {
	Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"`
	// contains filtered or unexported fields
}

func (*ClearRequest) Descriptor deprecated

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

Deprecated: Use ClearRequest.ProtoReflect.Descriptor instead.

func (*ClearRequest) GetUid

func (x *ClearRequest) GetUid() int64

func (*ClearRequest) ProtoMessage

func (*ClearRequest) ProtoMessage()

func (*ClearRequest) ProtoReflect

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

func (*ClearRequest) Reset

func (x *ClearRequest) Reset()

func (*ClearRequest) String

func (x *ClearRequest) String() string

type ClearResponse

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

func (*ClearResponse) Descriptor deprecated

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

Deprecated: Use ClearResponse.ProtoReflect.Descriptor instead.

func (*ClearResponse) ProtoMessage

func (*ClearResponse) ProtoMessage()

func (*ClearResponse) ProtoReflect

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

func (*ClearResponse) Reset

func (x *ClearResponse) Reset()

func (*ClearResponse) String

func (x *ClearResponse) String() string

type Config

type Config struct {
	Requests    []*PrintRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	TotalPrints int64           `protobuf:"varint,2,opt,name=total_prints,json=totalPrints,proto3" json:"total_prints,omitempty"`
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetRequests

func (x *Config) GetRequests() []*PrintRequest

func (*Config) GetTotalPrints

func (x *Config) GetTotalPrints() int64

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

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

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type ListRequest

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

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

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

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

type ListResponse

type ListResponse struct {
	Queue []*PrintRequest `protobuf:"bytes,1,rep,name=queue,proto3" json:"queue,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResponse) Descriptor deprecated

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

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetQueue

func (x *ListResponse) GetQueue() []*PrintRequest

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect

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

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) String

func (x *ListResponse) String() string

type PingRequest

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

func (*PingRequest) Descriptor deprecated

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

Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.

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 {
	// contains filtered or unexported fields
}

func (*PingResponse) Descriptor deprecated

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

Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.

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 PrintRequest

type PrintRequest struct {
	Text        string   `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	Lines       []string `protobuf:"bytes,2,rep,name=lines,proto3" json:"lines,omitempty"`
	Origin      string   `protobuf:"bytes,3,opt,name=origin,proto3" json:"origin,omitempty"`
	Id          int64    `protobuf:"varint,4,opt,name=id,proto3" json:"id,omitempty"`
	LinePointer int32    `protobuf:"varint,5,opt,name=line_pointer,json=linePointer,proto3" json:"line_pointer,omitempty"`
	Override    bool     `protobuf:"varint,6,opt,name=override,proto3" json:"override,omitempty"`
	// contains filtered or unexported fields
}

func (*PrintRequest) Descriptor deprecated

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

Deprecated: Use PrintRequest.ProtoReflect.Descriptor instead.

func (*PrintRequest) GetId

func (x *PrintRequest) GetId() int64

func (*PrintRequest) GetLinePointer

func (x *PrintRequest) GetLinePointer() int32

func (*PrintRequest) GetLines

func (x *PrintRequest) GetLines() []string

func (*PrintRequest) GetOrigin

func (x *PrintRequest) GetOrigin() string

func (*PrintRequest) GetOverride

func (x *PrintRequest) GetOverride() bool

func (*PrintRequest) GetText

func (x *PrintRequest) GetText() string

func (*PrintRequest) ProtoMessage

func (*PrintRequest) ProtoMessage()

func (*PrintRequest) ProtoReflect

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

func (*PrintRequest) Reset

func (x *PrintRequest) Reset()

func (*PrintRequest) String

func (x *PrintRequest) String() string

type PrintResponse

type PrintResponse struct {
	Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"`
	// contains filtered or unexported fields
}

func (*PrintResponse) Descriptor deprecated

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

Deprecated: Use PrintResponse.ProtoReflect.Descriptor instead.

func (*PrintResponse) GetUid

func (x *PrintResponse) GetUid() int64

func (*PrintResponse) ProtoMessage

func (*PrintResponse) ProtoMessage()

func (*PrintResponse) ProtoReflect

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

func (*PrintResponse) Reset

func (x *PrintResponse) Reset()

func (*PrintResponse) String

func (x *PrintResponse) String() string

type PrintServiceClient

type PrintServiceClient interface {
	Print(ctx context.Context, in *PrintRequest, opts ...grpc.CallOption) (*PrintResponse, error)
	Clear(ctx context.Context, in *ClearRequest, opts ...grpc.CallOption) (*ClearResponse, error)
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
	Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
}

PrintServiceClient is the client API for PrintService 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.

type PrintServiceServer

PrintServiceServer is the server API for PrintService service. All implementations should embed UnimplementedPrintServiceServer for forward compatibility

type UnimplementedPrintServiceServer

type UnimplementedPrintServiceServer struct {
}

UnimplementedPrintServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedPrintServiceServer) Clear

func (UnimplementedPrintServiceServer) List

func (UnimplementedPrintServiceServer) Ping

func (UnimplementedPrintServiceServer) Print

type UnsafePrintServiceServer

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

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

Jump to

Keyboard shortcuts

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