Documentation ¶
Index ¶
Constants ¶
const (
Starter_Start_FullMethodName = "/start.Starter/Start"
)
Variables ¶
var File_proto_start_proto protoreflect.FileDescriptor
var Starter_ServiceDesc = grpc.ServiceDesc{ ServiceName: "start.Starter", HandlerType: (*StarterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Start", Handler: _Starter_Start_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/start.proto", }
Starter_ServiceDesc is the grpc.ServiceDesc for Starter service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStarterServer ¶
func RegisterStarterServer(s grpc.ServiceRegistrar, srv StarterServer)
Types ¶
type StartRequest ¶
type StartRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*StartRequest) Descriptor
deprecated
func (*StartRequest) Descriptor() ([]byte, []int)
Deprecated: Use StartRequest.ProtoReflect.Descriptor instead.
func (*StartRequest) GetName ¶
func (x *StartRequest) GetName() string
func (*StartRequest) ProtoMessage ¶
func (*StartRequest) ProtoMessage()
func (*StartRequest) ProtoReflect ¶
func (x *StartRequest) ProtoReflect() protoreflect.Message
func (*StartRequest) Reset ¶
func (x *StartRequest) Reset()
func (*StartRequest) String ¶
func (x *StartRequest) String() string
type StartResponse ¶
type StartResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*StartResponse) Descriptor
deprecated
func (*StartResponse) Descriptor() ([]byte, []int)
Deprecated: Use StartResponse.ProtoReflect.Descriptor instead.
func (*StartResponse) GetMessage ¶
func (x *StartResponse) GetMessage() string
func (*StartResponse) ProtoMessage ¶
func (*StartResponse) ProtoMessage()
func (*StartResponse) ProtoReflect ¶
func (x *StartResponse) ProtoReflect() protoreflect.Message
func (*StartResponse) Reset ¶
func (x *StartResponse) Reset()
func (*StartResponse) String ¶
func (x *StartResponse) String() string
type StarterClient ¶
type StarterClient interface {
Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error)
}
StarterClient is the client API for Starter 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 NewStarterClient ¶
func NewStarterClient(cc grpc.ClientConnInterface) StarterClient
type StarterServer ¶
type StarterServer interface { Start(context.Context, *StartRequest) (*StartResponse, error) // contains filtered or unexported methods }
StarterServer is the server API for Starter service. All implementations must embed UnimplementedStarterServer for forward compatibility
type UnimplementedStarterServer ¶
type UnimplementedStarterServer struct { }
UnimplementedStarterServer must be embedded to have forward compatible implementations.
func (UnimplementedStarterServer) Start ¶
func (UnimplementedStarterServer) Start(context.Context, *StartRequest) (*StartResponse, error)
type UnsafeStarterServer ¶
type UnsafeStarterServer interface {
// contains filtered or unexported methods
}
UnsafeStarterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StarterServer will result in compilation errors.