rpc

package
v0.0.0-...-e9967f5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AitrailblazerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "aitrailblazer.service.v1.AitrailblazerService",
	HandlerType: (*AitrailblazerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SendPing",
			Handler:    _AitrailblazerService_SendPing_Handler,
		},
		{
			MethodName: "GetShelf",
			Handler:    _AitrailblazerService_GetShelf_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/service.proto",
}

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

View Source
var File_api_v1_service_proto protoreflect.FileDescriptor

Functions

func RegisterAitrailblazerServiceServer

func RegisterAitrailblazerServiceServer(s grpc.ServiceRegistrar, srv AitrailblazerServiceServer)

Types

type AitrailblazerServiceClient

type AitrailblazerServiceClient interface {
	SendPing(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
	//	rpc GetBook(GetBookRequest) returns (Book) {
	//	  option (google.api.http) = {
	//	    get: "/v1/{name=publishers/*/books/*}"
	//	  };
	//	  option (google.api.method_signature) = "name";
	//	}
	//
	// Returns a specific bookstore shelf.
	GetShelf(ctx context.Context, in *GetShelfRequest, opts ...grpc.CallOption) (*Shelf, error)
}

AitrailblazerServiceClient is the client API for AitrailblazerService 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 AitrailblazerServiceServer

type AitrailblazerServiceServer interface {
	SendPing(context.Context, *PingRequest) (*PingResponse, error)
	//	rpc GetBook(GetBookRequest) returns (Book) {
	//	  option (google.api.http) = {
	//	    get: "/v1/{name=publishers/*/books/*}"
	//	  };
	//	  option (google.api.method_signature) = "name";
	//	}
	//
	// Returns a specific bookstore shelf.
	GetShelf(context.Context, *GetShelfRequest) (*Shelf, error)
	// contains filtered or unexported methods
}

AitrailblazerServiceServer is the server API for AitrailblazerService service. All implementations must embed UnimplementedAitrailblazerServiceServer for forward compatibility

type GetShelfRequest

type GetShelfRequest struct {

	// The ID of the shelf resource to retrieve.
	Shelf int64 `protobuf:"varint,1,opt,name=shelf,proto3" json:"shelf,omitempty"`
	// contains filtered or unexported fields
}

Request message for GetShelf method.

func (*GetShelfRequest) Descriptor deprecated

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

Deprecated: Use GetShelfRequest.ProtoReflect.Descriptor instead.

func (*GetShelfRequest) GetShelf

func (x *GetShelfRequest) GetShelf() int64

func (*GetShelfRequest) ProtoMessage

func (*GetShelfRequest) ProtoMessage()

func (*GetShelfRequest) ProtoReflect

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

func (*GetShelfRequest) Reset

func (x *GetShelfRequest) Reset()

func (*GetShelfRequest) String

func (x *GetShelfRequest) String() string

type PingRequest

type PingRequest struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

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 {
	Pong *Pong `protobuf:"bytes,1,opt,name=pong,proto3" json:"pong,omitempty"`
	// contains filtered or unexported fields
}

func (*PingResponse) Descriptor deprecated

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

Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.

func (*PingResponse) GetPong

func (x *PingResponse) GetPong() *Pong

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 Pong

type Pong struct {
	Index      int32                  `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`                            // index
	Message    string                 `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`                         // message
	Ver        string                 `protobuf:"bytes,3,opt,name=ver,proto3" json:"ver,omitempty"`                                 // version
	ReceivedOn *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=received_on,json=receivedOn,proto3" json:"received_on,omitempty"` // received_on
	// contains filtered or unexported fields
}

func (*Pong) Descriptor deprecated

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

Deprecated: Use Pong.ProtoReflect.Descriptor instead.

func (*Pong) GetIndex

func (x *Pong) GetIndex() int32

func (*Pong) GetMessage

func (x *Pong) GetMessage() string

func (*Pong) GetReceivedOn

func (x *Pong) GetReceivedOn() *timestamppb.Timestamp

func (*Pong) GetVer

func (x *Pong) GetVer() string

func (*Pong) ProtoMessage

func (*Pong) ProtoMessage()

func (*Pong) ProtoReflect

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

func (*Pong) Reset

func (x *Pong) Reset()

func (*Pong) String

func (x *Pong) String() string

type Shelf

type Shelf struct {

	// A unique shelf id.
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// A theme of the shelf (fiction, poetry, etc).
	Theme string `protobuf:"bytes,2,opt,name=theme,proto3" json:"theme,omitempty"`
	// contains filtered or unexported fields
}

A shelf resource.

func (*Shelf) Descriptor deprecated

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

Deprecated: Use Shelf.ProtoReflect.Descriptor instead.

func (*Shelf) GetId

func (x *Shelf) GetId() int64

func (*Shelf) GetTheme

func (x *Shelf) GetTheme() string

func (*Shelf) ProtoMessage

func (*Shelf) ProtoMessage()

func (*Shelf) ProtoReflect

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

func (*Shelf) Reset

func (x *Shelf) Reset()

func (*Shelf) String

func (x *Shelf) String() string

type UnimplementedAitrailblazerServiceServer

type UnimplementedAitrailblazerServiceServer struct {
}

UnimplementedAitrailblazerServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAitrailblazerServiceServer) GetShelf

func (UnimplementedAitrailblazerServiceServer) SendPing

type UnsafeAitrailblazerServiceServer

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

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

Directories

Path Synopsis
v1
pb Module

Jump to

Keyboard shortcuts

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