Documentation ¶
Index ¶
- Variables
- func RegisterAitrailblazerServiceServer(s grpc.ServiceRegistrar, srv AitrailblazerServiceServer)
- type AitrailblazerServiceClient
- type AitrailblazerServiceServer
- type GetShelfRequest
- type PingRequest
- type PingResponse
- type Pong
- func (*Pong) Descriptor() ([]byte, []int)deprecated
- func (x *Pong) GetIndex() int32
- func (x *Pong) GetMessage() string
- func (x *Pong) GetReceivedOn() *timestamppb.Timestamp
- func (x *Pong) GetVer() string
- func (*Pong) ProtoMessage()
- func (x *Pong) ProtoReflect() protoreflect.Message
- func (x *Pong) Reset()
- func (x *Pong) String() string
- type Shelf
- type UnimplementedAitrailblazerServiceServer
- type UnsafeAitrailblazerServiceServer
Constants ¶
This section is empty.
Variables ¶
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)
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.
func NewAitrailblazerServiceClient ¶
func NewAitrailblazerServiceClient(cc grpc.ClientConnInterface) AitrailblazerServiceClient
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) GetMessage ¶
func (*Pong) GetReceivedOn ¶
func (x *Pong) GetReceivedOn() *timestamppb.Timestamp
func (*Pong) ProtoMessage ¶
func (*Pong) ProtoMessage()
func (*Pong) ProtoReflect ¶
func (x *Pong) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Shelf) ProtoMessage()
func (*Shelf) ProtoReflect ¶
func (x *Shelf) ProtoReflect() protoreflect.Message
type UnimplementedAitrailblazerServiceServer ¶
type UnimplementedAitrailblazerServiceServer struct { }
UnimplementedAitrailblazerServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAitrailblazerServiceServer) GetShelf ¶
func (UnimplementedAitrailblazerServiceServer) GetShelf(context.Context, *GetShelfRequest) (*Shelf, error)
func (UnimplementedAitrailblazerServiceServer) SendPing ¶
func (UnimplementedAitrailblazerServiceServer) SendPing(context.Context, *PingRequest) (*PingResponse, error)
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.