Documentation ¶
Overview ¶
Package croneventsrc is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterCronEventSourceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterCronEventSourceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CronEventSourceClient) error
- func RegisterCronEventSourceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterCronEventSourceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CronEventSourceServer) error
- func RegisterCronEventSourceServer(s grpc.ServiceRegistrar, srv CronEventSourceServer)
- type BindRequest
- func (*BindRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BindRequest) GetCronspec() string
- func (x *BindRequest) GetName() string
- func (x *BindRequest) GetProjectId() string
- func (*BindRequest) ProtoMessage()
- func (x *BindRequest) ProtoReflect() protoreflect.Message
- func (x *BindRequest) Reset()
- func (x *BindRequest) String() string
- func (m *BindRequest) Validate() error
- type BindRequestValidationError
- func (e BindRequestValidationError) Cause() error
- func (e BindRequestValidationError) Error() string
- func (e BindRequestValidationError) ErrorName() string
- func (e BindRequestValidationError) Field() string
- func (e BindRequestValidationError) Key() bool
- func (e BindRequestValidationError) Reason() string
- type BindResponse
- type BindResponseValidationError
- func (e BindResponseValidationError) Cause() error
- func (e BindResponseValidationError) Error() string
- func (e BindResponseValidationError) ErrorName() string
- func (e BindResponseValidationError) Field() string
- func (e BindResponseValidationError) Key() bool
- func (e BindResponseValidationError) Reason() string
- type CronEventSourceClient
- type CronEventSourceServer
- type TickRequest
- type TickRequestValidationError
- func (e TickRequestValidationError) Cause() error
- func (e TickRequestValidationError) Error() string
- func (e TickRequestValidationError) ErrorName() string
- func (e TickRequestValidationError) Field() string
- func (e TickRequestValidationError) Key() bool
- func (e TickRequestValidationError) Reason() string
- type TickResponse
- type TickResponseValidationError
- func (e TickResponseValidationError) Cause() error
- func (e TickResponseValidationError) Error() string
- func (e TickResponseValidationError) ErrorName() string
- func (e TickResponseValidationError) Field() string
- func (e TickResponseValidationError) Key() bool
- func (e TickResponseValidationError) Reason() string
- type UnbindRequest
- func (*UnbindRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnbindRequest) GetProjectId() string
- func (*UnbindRequest) ProtoMessage()
- func (x *UnbindRequest) ProtoReflect() protoreflect.Message
- func (x *UnbindRequest) Reset()
- func (x *UnbindRequest) String() string
- func (m *UnbindRequest) Validate() error
- type UnbindRequestValidationError
- func (e UnbindRequestValidationError) Cause() error
- func (e UnbindRequestValidationError) Error() string
- func (e UnbindRequestValidationError) ErrorName() string
- func (e UnbindRequestValidationError) Field() string
- func (e UnbindRequestValidationError) Key() bool
- func (e UnbindRequestValidationError) Reason() string
- type UnbindResponse
- type UnbindResponseValidationError
- func (e UnbindResponseValidationError) Cause() error
- func (e UnbindResponseValidationError) Error() string
- func (e UnbindResponseValidationError) ErrorName() string
- func (e UnbindResponseValidationError) Field() string
- func (e UnbindResponseValidationError) Key() bool
- func (e UnbindResponseValidationError) Reason() string
- type UnimplementedCronEventSourceServer
- func (UnimplementedCronEventSourceServer) Bind(context.Context, *BindRequest) (*BindResponse, error)
- func (UnimplementedCronEventSourceServer) Tick(context.Context, *TickRequest) (*TickResponse, error)
- func (UnimplementedCronEventSourceServer) Unbind(context.Context, *UnbindRequest) (*UnbindResponse, error)
- type UnsafeCronEventSourceServer
Constants ¶
This section is empty.
Variables ¶
var CronEventSource_ServiceDesc = grpc.ServiceDesc{ ServiceName: "autokitteh.croneventsrc.CronEventSource", HandlerType: (*CronEventSourceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Tick", Handler: _CronEventSource_Tick_Handler, }, { MethodName: "Bind", Handler: _CronEventSource_Bind_Handler, }, { MethodName: "Unbind", Handler: _CronEventSource_Unbind_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "croneventsrc/svc.proto", }
CronEventSource_ServiceDesc is the grpc.ServiceDesc for CronEventSource service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_croneventsrc_svc_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCronEventSourceHandler ¶
func RegisterCronEventSourceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterCronEventSourceHandler registers the http handlers for service CronEventSource to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterCronEventSourceHandlerClient ¶
func RegisterCronEventSourceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CronEventSourceClient) error
RegisterCronEventSourceHandlerClient registers the http handlers for service CronEventSource to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CronEventSourceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CronEventSourceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CronEventSourceClient" to call the correct interceptors.
func RegisterCronEventSourceHandlerFromEndpoint ¶
func RegisterCronEventSourceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterCronEventSourceHandlerFromEndpoint is same as RegisterCronEventSourceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterCronEventSourceHandlerServer ¶
func RegisterCronEventSourceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CronEventSourceServer) error
RegisterCronEventSourceHandlerServer registers the http handlers for service CronEventSource to "mux". UnaryRPC :call CronEventSourceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCronEventSourceHandlerFromEndpoint instead.
func RegisterCronEventSourceServer ¶
func RegisterCronEventSourceServer(s grpc.ServiceRegistrar, srv CronEventSourceServer)
Types ¶
type BindRequest ¶
type BindRequest struct { ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Cronspec string `protobuf:"bytes,3,opt,name=cronspec,proto3" json:"cronspec,omitempty"` // contains filtered or unexported fields }
func (*BindRequest) Descriptor
deprecated
func (*BindRequest) Descriptor() ([]byte, []int)
Deprecated: Use BindRequest.ProtoReflect.Descriptor instead.
func (*BindRequest) GetCronspec ¶
func (x *BindRequest) GetCronspec() string
func (*BindRequest) GetName ¶
func (x *BindRequest) GetName() string
func (*BindRequest) GetProjectId ¶
func (x *BindRequest) GetProjectId() string
func (*BindRequest) ProtoMessage ¶
func (*BindRequest) ProtoMessage()
func (*BindRequest) ProtoReflect ¶
func (x *BindRequest) ProtoReflect() protoreflect.Message
func (*BindRequest) Reset ¶
func (x *BindRequest) Reset()
func (*BindRequest) String ¶
func (x *BindRequest) String() string
func (*BindRequest) Validate ¶
func (m *BindRequest) Validate() error
Validate checks the field values on BindRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type BindRequestValidationError ¶
type BindRequestValidationError struct {
// contains filtered or unexported fields
}
BindRequestValidationError is the validation error returned by BindRequest.Validate if the designated constraints aren't met.
func (BindRequestValidationError) Cause ¶
func (e BindRequestValidationError) Cause() error
Cause function returns cause value.
func (BindRequestValidationError) Error ¶
func (e BindRequestValidationError) Error() string
Error satisfies the builtin error interface
func (BindRequestValidationError) ErrorName ¶
func (e BindRequestValidationError) ErrorName() string
ErrorName returns error name.
func (BindRequestValidationError) Field ¶
func (e BindRequestValidationError) Field() string
Field function returns field value.
func (BindRequestValidationError) Key ¶
func (e BindRequestValidationError) Key() bool
Key function returns key value.
func (BindRequestValidationError) Reason ¶
func (e BindRequestValidationError) Reason() string
Reason function returns reason value.
type BindResponse ¶
type BindResponse struct {
// contains filtered or unexported fields
}
func (*BindResponse) Descriptor
deprecated
func (*BindResponse) Descriptor() ([]byte, []int)
Deprecated: Use BindResponse.ProtoReflect.Descriptor instead.
func (*BindResponse) ProtoMessage ¶
func (*BindResponse) ProtoMessage()
func (*BindResponse) ProtoReflect ¶
func (x *BindResponse) ProtoReflect() protoreflect.Message
func (*BindResponse) Reset ¶
func (x *BindResponse) Reset()
func (*BindResponse) String ¶
func (x *BindResponse) String() string
func (*BindResponse) Validate ¶
func (m *BindResponse) Validate() error
Validate checks the field values on BindResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type BindResponseValidationError ¶
type BindResponseValidationError struct {
// contains filtered or unexported fields
}
BindResponseValidationError is the validation error returned by BindResponse.Validate if the designated constraints aren't met.
func (BindResponseValidationError) Cause ¶
func (e BindResponseValidationError) Cause() error
Cause function returns cause value.
func (BindResponseValidationError) Error ¶
func (e BindResponseValidationError) Error() string
Error satisfies the builtin error interface
func (BindResponseValidationError) ErrorName ¶
func (e BindResponseValidationError) ErrorName() string
ErrorName returns error name.
func (BindResponseValidationError) Field ¶
func (e BindResponseValidationError) Field() string
Field function returns field value.
func (BindResponseValidationError) Key ¶
func (e BindResponseValidationError) Key() bool
Key function returns key value.
func (BindResponseValidationError) Reason ¶
func (e BindResponseValidationError) Reason() string
Reason function returns reason value.
type CronEventSourceClient ¶
type CronEventSourceClient interface { Tick(ctx context.Context, in *TickRequest, opts ...grpc.CallOption) (*TickResponse, error) Bind(ctx context.Context, in *BindRequest, opts ...grpc.CallOption) (*BindResponse, error) Unbind(ctx context.Context, in *UnbindRequest, opts ...grpc.CallOption) (*UnbindResponse, error) }
CronEventSourceClient is the client API for CronEventSource 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 NewCronEventSourceClient ¶
func NewCronEventSourceClient(cc grpc.ClientConnInterface) CronEventSourceClient
type CronEventSourceServer ¶
type CronEventSourceServer interface { Tick(context.Context, *TickRequest) (*TickResponse, error) Bind(context.Context, *BindRequest) (*BindResponse, error) Unbind(context.Context, *UnbindRequest) (*UnbindResponse, error) // contains filtered or unexported methods }
CronEventSourceServer is the server API for CronEventSource service. All implementations must embed UnimplementedCronEventSourceServer for forward compatibility
type TickRequest ¶
type TickRequest struct {
// contains filtered or unexported fields
}
func (*TickRequest) Descriptor
deprecated
func (*TickRequest) Descriptor() ([]byte, []int)
Deprecated: Use TickRequest.ProtoReflect.Descriptor instead.
func (*TickRequest) ProtoMessage ¶
func (*TickRequest) ProtoMessage()
func (*TickRequest) ProtoReflect ¶
func (x *TickRequest) ProtoReflect() protoreflect.Message
func (*TickRequest) Reset ¶
func (x *TickRequest) Reset()
func (*TickRequest) String ¶
func (x *TickRequest) String() string
func (*TickRequest) Validate ¶
func (m *TickRequest) Validate() error
Validate checks the field values on TickRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type TickRequestValidationError ¶
type TickRequestValidationError struct {
// contains filtered or unexported fields
}
TickRequestValidationError is the validation error returned by TickRequest.Validate if the designated constraints aren't met.
func (TickRequestValidationError) Cause ¶
func (e TickRequestValidationError) Cause() error
Cause function returns cause value.
func (TickRequestValidationError) Error ¶
func (e TickRequestValidationError) Error() string
Error satisfies the builtin error interface
func (TickRequestValidationError) ErrorName ¶
func (e TickRequestValidationError) ErrorName() string
ErrorName returns error name.
func (TickRequestValidationError) Field ¶
func (e TickRequestValidationError) Field() string
Field function returns field value.
func (TickRequestValidationError) Key ¶
func (e TickRequestValidationError) Key() bool
Key function returns key value.
func (TickRequestValidationError) Reason ¶
func (e TickRequestValidationError) Reason() string
Reason function returns reason value.
type TickResponse ¶
type TickResponse struct {
// contains filtered or unexported fields
}
func (*TickResponse) Descriptor
deprecated
func (*TickResponse) Descriptor() ([]byte, []int)
Deprecated: Use TickResponse.ProtoReflect.Descriptor instead.
func (*TickResponse) ProtoMessage ¶
func (*TickResponse) ProtoMessage()
func (*TickResponse) ProtoReflect ¶
func (x *TickResponse) ProtoReflect() protoreflect.Message
func (*TickResponse) Reset ¶
func (x *TickResponse) Reset()
func (*TickResponse) String ¶
func (x *TickResponse) String() string
func (*TickResponse) Validate ¶
func (m *TickResponse) Validate() error
Validate checks the field values on TickResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type TickResponseValidationError ¶
type TickResponseValidationError struct {
// contains filtered or unexported fields
}
TickResponseValidationError is the validation error returned by TickResponse.Validate if the designated constraints aren't met.
func (TickResponseValidationError) Cause ¶
func (e TickResponseValidationError) Cause() error
Cause function returns cause value.
func (TickResponseValidationError) Error ¶
func (e TickResponseValidationError) Error() string
Error satisfies the builtin error interface
func (TickResponseValidationError) ErrorName ¶
func (e TickResponseValidationError) ErrorName() string
ErrorName returns error name.
func (TickResponseValidationError) Field ¶
func (e TickResponseValidationError) Field() string
Field function returns field value.
func (TickResponseValidationError) Key ¶
func (e TickResponseValidationError) Key() bool
Key function returns key value.
func (TickResponseValidationError) Reason ¶
func (e TickResponseValidationError) Reason() string
Reason function returns reason value.
type UnbindRequest ¶
type UnbindRequest struct { ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // contains filtered or unexported fields }
func (*UnbindRequest) Descriptor
deprecated
func (*UnbindRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnbindRequest.ProtoReflect.Descriptor instead.
func (*UnbindRequest) GetProjectId ¶
func (x *UnbindRequest) GetProjectId() string
func (*UnbindRequest) ProtoMessage ¶
func (*UnbindRequest) ProtoMessage()
func (*UnbindRequest) ProtoReflect ¶
func (x *UnbindRequest) ProtoReflect() protoreflect.Message
func (*UnbindRequest) Reset ¶
func (x *UnbindRequest) Reset()
func (*UnbindRequest) String ¶
func (x *UnbindRequest) String() string
func (*UnbindRequest) Validate ¶
func (m *UnbindRequest) Validate() error
Validate checks the field values on UnbindRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UnbindRequestValidationError ¶
type UnbindRequestValidationError struct {
// contains filtered or unexported fields
}
UnbindRequestValidationError is the validation error returned by UnbindRequest.Validate if the designated constraints aren't met.
func (UnbindRequestValidationError) Cause ¶
func (e UnbindRequestValidationError) Cause() error
Cause function returns cause value.
func (UnbindRequestValidationError) Error ¶
func (e UnbindRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UnbindRequestValidationError) ErrorName ¶
func (e UnbindRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UnbindRequestValidationError) Field ¶
func (e UnbindRequestValidationError) Field() string
Field function returns field value.
func (UnbindRequestValidationError) Key ¶
func (e UnbindRequestValidationError) Key() bool
Key function returns key value.
func (UnbindRequestValidationError) Reason ¶
func (e UnbindRequestValidationError) Reason() string
Reason function returns reason value.
type UnbindResponse ¶
type UnbindResponse struct {
// contains filtered or unexported fields
}
func (*UnbindResponse) Descriptor
deprecated
func (*UnbindResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnbindResponse.ProtoReflect.Descriptor instead.
func (*UnbindResponse) ProtoMessage ¶
func (*UnbindResponse) ProtoMessage()
func (*UnbindResponse) ProtoReflect ¶
func (x *UnbindResponse) ProtoReflect() protoreflect.Message
func (*UnbindResponse) Reset ¶
func (x *UnbindResponse) Reset()
func (*UnbindResponse) String ¶
func (x *UnbindResponse) String() string
func (*UnbindResponse) Validate ¶
func (m *UnbindResponse) Validate() error
Validate checks the field values on UnbindResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UnbindResponseValidationError ¶
type UnbindResponseValidationError struct {
// contains filtered or unexported fields
}
UnbindResponseValidationError is the validation error returned by UnbindResponse.Validate if the designated constraints aren't met.
func (UnbindResponseValidationError) Cause ¶
func (e UnbindResponseValidationError) Cause() error
Cause function returns cause value.
func (UnbindResponseValidationError) Error ¶
func (e UnbindResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UnbindResponseValidationError) ErrorName ¶
func (e UnbindResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UnbindResponseValidationError) Field ¶
func (e UnbindResponseValidationError) Field() string
Field function returns field value.
func (UnbindResponseValidationError) Key ¶
func (e UnbindResponseValidationError) Key() bool
Key function returns key value.
func (UnbindResponseValidationError) Reason ¶
func (e UnbindResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedCronEventSourceServer ¶
type UnimplementedCronEventSourceServer struct { }
UnimplementedCronEventSourceServer must be embedded to have forward compatible implementations.
func (UnimplementedCronEventSourceServer) Bind ¶
func (UnimplementedCronEventSourceServer) Bind(context.Context, *BindRequest) (*BindResponse, error)
func (UnimplementedCronEventSourceServer) Tick ¶
func (UnimplementedCronEventSourceServer) Tick(context.Context, *TickRequest) (*TickResponse, error)
func (UnimplementedCronEventSourceServer) Unbind ¶
func (UnimplementedCronEventSourceServer) Unbind(context.Context, *UnbindRequest) (*UnbindResponse, error)
type UnsafeCronEventSourceServer ¶
type UnsafeCronEventSourceServer interface {
// contains filtered or unexported methods
}
UnsafeCronEventSourceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CronEventSourceServer will result in compilation errors.