Documentation
¶
Index ¶
- Variables
- func FileDescriptorSet() *descriptorpb.FileDescriptorSet
- func RegisterRotationProxyServiceServer(s prpc.Registrar, srv RotationProxyServiceServer)
- type BatchGetRotationsRequest
- func (*BatchGetRotationsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchGetRotationsRequest) GetNames() []string
- func (*BatchGetRotationsRequest) ProtoMessage()
- func (x *BatchGetRotationsRequest) ProtoReflect() protoreflect.Message
- func (x *BatchGetRotationsRequest) Reset()
- func (x *BatchGetRotationsRequest) String() string
- type BatchGetRotationsResponse
- func (*BatchGetRotationsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BatchGetRotationsResponse) GetRotations() []*Rotation
- func (*BatchGetRotationsResponse) ProtoMessage()
- func (x *BatchGetRotationsResponse) ProtoReflect() protoreflect.Message
- func (x *BatchGetRotationsResponse) Reset()
- func (x *BatchGetRotationsResponse) String() string
- type BatchUpdateRotationsRequest
- func (*BatchUpdateRotationsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchUpdateRotationsRequest) GetRequests() []*UpdateRotationRequest
- func (*BatchUpdateRotationsRequest) ProtoMessage()
- func (x *BatchUpdateRotationsRequest) ProtoReflect() protoreflect.Message
- func (x *BatchUpdateRotationsRequest) Reset()
- func (x *BatchUpdateRotationsRequest) String() string
- type BatchUpdateRotationsResponse
- func (*BatchUpdateRotationsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BatchUpdateRotationsResponse) GetRotations() []*Rotation
- func (*BatchUpdateRotationsResponse) ProtoMessage()
- func (x *BatchUpdateRotationsResponse) ProtoReflect() protoreflect.Message
- func (x *BatchUpdateRotationsResponse) Reset()
- func (x *BatchUpdateRotationsResponse) String() string
- type DecoratedRotationProxyService
- func (s *DecoratedRotationProxyService) BatchGetRotations(ctx context.Context, req *BatchGetRotationsRequest) (rsp *BatchGetRotationsResponse, err error)
- func (s *DecoratedRotationProxyService) BatchUpdateRotations(ctx context.Context, req *BatchUpdateRotationsRequest) (rsp *BatchUpdateRotationsResponse, err error)
- func (s *DecoratedRotationProxyService) GetRotation(ctx context.Context, req *GetRotationRequest) (rsp *Rotation, err error)
- type GetRotationRequest
- func (*GetRotationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRotationRequest) GetName() string
- func (*GetRotationRequest) ProtoMessage()
- func (x *GetRotationRequest) ProtoReflect() protoreflect.Message
- func (x *GetRotationRequest) Reset()
- func (x *GetRotationRequest) String() string
- type OncallPerson
- func (*OncallPerson) Descriptor() ([]byte, []int)deprecated
- func (p *OncallPerson) FromProperty(prop datastore.Property) error
- func (x *OncallPerson) GetEmail() string
- func (*OncallPerson) ProtoMessage()
- func (x *OncallPerson) ProtoReflect() protoreflect.Message
- func (x *OncallPerson) Reset()
- func (x *OncallPerson) String() string
- func (p *OncallPerson) ToProperty() (prop datastore.Property, err error)
- type Rotation
- func (*Rotation) Descriptor() ([]byte, []int)deprecated
- func (p *Rotation) FromProperty(prop datastore.Property) error
- func (x *Rotation) GetName() string
- func (x *Rotation) GetShifts() []*Shift
- func (*Rotation) ProtoMessage()
- func (x *Rotation) ProtoReflect() protoreflect.Message
- func (x *Rotation) Reset()
- func (x *Rotation) String() string
- func (p *Rotation) ToProperty() (prop datastore.Property, err error)
- type RotationProxyServiceClient
- type RotationProxyServiceServer
- type Shift
- func (*Shift) Descriptor() ([]byte, []int)deprecated
- func (p *Shift) FromProperty(prop datastore.Property) error
- func (x *Shift) GetEndTime() *timestamppb.Timestamp
- func (x *Shift) GetOncalls() []*OncallPerson
- func (x *Shift) GetStartTime() *timestamppb.Timestamp
- func (*Shift) ProtoMessage()
- func (x *Shift) ProtoReflect() protoreflect.Message
- func (x *Shift) Reset()
- func (x *Shift) String() string
- func (p *Shift) ToProperty() (prop datastore.Property, err error)
- type UnimplementedRotationProxyServiceServer
- func (*UnimplementedRotationProxyServiceServer) BatchGetRotations(context.Context, *BatchGetRotationsRequest) (*BatchGetRotationsResponse, error)
- func (*UnimplementedRotationProxyServiceServer) BatchUpdateRotations(context.Context, *BatchUpdateRotationsRequest) (*BatchUpdateRotationsResponse, error)
- func (*UnimplementedRotationProxyServiceServer) GetRotation(context.Context, *GetRotationRequest) (*Rotation, error)
- type UpdateRotationRequest
- func (*UpdateRotationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRotationRequest) GetRotation() *Rotation
- func (*UpdateRotationRequest) ProtoMessage()
- func (x *UpdateRotationRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRotationRequest) Reset()
- func (x *UpdateRotationRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var File_go_chromium_org_infra_appengine_rotation_proxy_proto_rotation_proxy_proto protoreflect.FileDescriptor
Functions ¶
func FileDescriptorSet ¶
func FileDescriptorSet() *descriptorpb.FileDescriptorSet
FileDescriptorSet returns a descriptor set for this proto package, which includes all defined services, and all transitive dependencies.
Will not return nil.
Do NOT modify the returned descriptor.
func RegisterRotationProxyServiceServer ¶
func RegisterRotationProxyServiceServer(s prpc.Registrar, srv RotationProxyServiceServer)
Types ¶
type BatchGetRotationsRequest ¶
type BatchGetRotationsRequest struct { // The names of the rotations to fetch. Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` // contains filtered or unexported fields }
func (*BatchGetRotationsRequest) Descriptor
deprecated
func (*BatchGetRotationsRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchGetRotationsRequest.ProtoReflect.Descriptor instead.
func (*BatchGetRotationsRequest) GetNames ¶
func (x *BatchGetRotationsRequest) GetNames() []string
func (*BatchGetRotationsRequest) ProtoMessage ¶
func (*BatchGetRotationsRequest) ProtoMessage()
func (*BatchGetRotationsRequest) ProtoReflect ¶
func (x *BatchGetRotationsRequest) ProtoReflect() protoreflect.Message
func (*BatchGetRotationsRequest) Reset ¶
func (x *BatchGetRotationsRequest) Reset()
func (*BatchGetRotationsRequest) String ¶
func (x *BatchGetRotationsRequest) String() string
type BatchGetRotationsResponse ¶
type BatchGetRotationsResponse struct { // Details about the rotations requested. Rotations []*Rotation `protobuf:"bytes,1,rep,name=rotations,proto3" json:"rotations,omitempty"` // contains filtered or unexported fields }
func (*BatchGetRotationsResponse) Descriptor
deprecated
func (*BatchGetRotationsResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchGetRotationsResponse.ProtoReflect.Descriptor instead.
func (*BatchGetRotationsResponse) GetRotations ¶
func (x *BatchGetRotationsResponse) GetRotations() []*Rotation
func (*BatchGetRotationsResponse) ProtoMessage ¶
func (*BatchGetRotationsResponse) ProtoMessage()
func (*BatchGetRotationsResponse) ProtoReflect ¶
func (x *BatchGetRotationsResponse) ProtoReflect() protoreflect.Message
func (*BatchGetRotationsResponse) Reset ¶
func (x *BatchGetRotationsResponse) Reset()
func (*BatchGetRotationsResponse) String ¶
func (x *BatchGetRotationsResponse) String() string
type BatchUpdateRotationsRequest ¶
type BatchUpdateRotationsRequest struct { // The rotations to update. Requests []*UpdateRotationRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` // contains filtered or unexported fields }
Request to update a list of rotations.
func (*BatchUpdateRotationsRequest) Descriptor
deprecated
func (*BatchUpdateRotationsRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchUpdateRotationsRequest.ProtoReflect.Descriptor instead.
func (*BatchUpdateRotationsRequest) GetRequests ¶
func (x *BatchUpdateRotationsRequest) GetRequests() []*UpdateRotationRequest
func (*BatchUpdateRotationsRequest) ProtoMessage ¶
func (*BatchUpdateRotationsRequest) ProtoMessage()
func (*BatchUpdateRotationsRequest) ProtoReflect ¶
func (x *BatchUpdateRotationsRequest) ProtoReflect() protoreflect.Message
func (*BatchUpdateRotationsRequest) Reset ¶
func (x *BatchUpdateRotationsRequest) Reset()
func (*BatchUpdateRotationsRequest) String ¶
func (x *BatchUpdateRotationsRequest) String() string
type BatchUpdateRotationsResponse ¶
type BatchUpdateRotationsResponse struct { // Rotation updated. Rotations []*Rotation `protobuf:"bytes,1,rep,name=rotations,proto3" json:"rotations,omitempty"` // contains filtered or unexported fields }
func (*BatchUpdateRotationsResponse) Descriptor
deprecated
func (*BatchUpdateRotationsResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchUpdateRotationsResponse.ProtoReflect.Descriptor instead.
func (*BatchUpdateRotationsResponse) GetRotations ¶
func (x *BatchUpdateRotationsResponse) GetRotations() []*Rotation
func (*BatchUpdateRotationsResponse) ProtoMessage ¶
func (*BatchUpdateRotationsResponse) ProtoMessage()
func (*BatchUpdateRotationsResponse) ProtoReflect ¶
func (x *BatchUpdateRotationsResponse) ProtoReflect() protoreflect.Message
func (*BatchUpdateRotationsResponse) Reset ¶
func (x *BatchUpdateRotationsResponse) Reset()
func (*BatchUpdateRotationsResponse) String ¶
func (x *BatchUpdateRotationsResponse) String() string
type DecoratedRotationProxyService ¶
type DecoratedRotationProxyService struct { // Service is the service to decorate. Service RotationProxyServiceServer // Prelude is called for each method before forwarding the call to Service. // If Prelude returns an error, then the call is skipped and the error is // processed via the Postlude (if one is defined), or it is returned directly. Prelude func(ctx context.Context, methodName string, req proto.Message) (context.Context, error) // Postlude is called for each method after Service has processed the call, or // after the Prelude has returned an error. This takes the Service's // response proto (which may be nil) and/or any error. The decorated // service will return the response (possibly mutated) and error that Postlude // returns. Postlude func(ctx context.Context, methodName string, rsp proto.Message, err error) error }
func (*DecoratedRotationProxyService) BatchGetRotations ¶
func (s *DecoratedRotationProxyService) BatchGetRotations(ctx context.Context, req *BatchGetRotationsRequest) (rsp *BatchGetRotationsResponse, err error)
func (*DecoratedRotationProxyService) BatchUpdateRotations ¶
func (s *DecoratedRotationProxyService) BatchUpdateRotations(ctx context.Context, req *BatchUpdateRotationsRequest) (rsp *BatchUpdateRotationsResponse, err error)
func (*DecoratedRotationProxyService) GetRotation ¶
func (s *DecoratedRotationProxyService) GetRotation(ctx context.Context, req *GetRotationRequest) (rsp *Rotation, err error)
type GetRotationRequest ¶
type GetRotationRequest struct { // The name of the rotation to fetch. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetRotationRequest) Descriptor
deprecated
func (*GetRotationRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRotationRequest.ProtoReflect.Descriptor instead.
func (*GetRotationRequest) GetName ¶
func (x *GetRotationRequest) GetName() string
func (*GetRotationRequest) ProtoMessage ¶
func (*GetRotationRequest) ProtoMessage()
func (*GetRotationRequest) ProtoReflect ¶
func (x *GetRotationRequest) ProtoReflect() protoreflect.Message
func (*GetRotationRequest) Reset ¶
func (x *GetRotationRequest) Reset()
func (*GetRotationRequest) String ¶
func (x *GetRotationRequest) String() string
type OncallPerson ¶
type OncallPerson struct { // Email of oncall person. Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*OncallPerson) Descriptor
deprecated
func (*OncallPerson) Descriptor() ([]byte, []int)
Deprecated: Use OncallPerson.ProtoReflect.Descriptor instead.
func (*OncallPerson) FromProperty ¶
func (p *OncallPerson) FromProperty(prop datastore.Property) error
FromProperty implements datastore.PropertyConverter. It parses a '[]byte' into an embedded 'OncallPerson' when used with the "go.chromium.org/luci/gae" library.
func (*OncallPerson) GetEmail ¶
func (x *OncallPerson) GetEmail() string
func (*OncallPerson) ProtoMessage ¶
func (*OncallPerson) ProtoMessage()
func (*OncallPerson) ProtoReflect ¶
func (x *OncallPerson) ProtoReflect() protoreflect.Message
func (*OncallPerson) Reset ¶
func (x *OncallPerson) Reset()
func (*OncallPerson) String ¶
func (x *OncallPerson) String() string
func (*OncallPerson) ToProperty ¶
func (p *OncallPerson) ToProperty() (prop datastore.Property, err error)
ToProperty implements datastore.PropertyConverter. It causes an embedded 'OncallPerson' to serialize to an unindexed '[]byte' when used with the "go.chromium.org/luci/gae" library.
type Rotation ¶
type Rotation struct { // The unique name of the rotation. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Shifts in a rotation. // Shifts will be sorted by start time with the current shift as the first element. Shifts []*Shift `protobuf:"bytes,2,rep,name=shifts,proto3" json:"shifts,omitempty"` // contains filtered or unexported fields }
Contains information about a rotation.
func (*Rotation) Descriptor
deprecated
func (*Rotation) FromProperty ¶
FromProperty implements datastore.PropertyConverter. It parses a '[]byte' into an embedded 'Rotation' when used with the "go.chromium.org/luci/gae" library.
func (*Rotation) ProtoMessage ¶
func (*Rotation) ProtoMessage()
func (*Rotation) ProtoReflect ¶
func (x *Rotation) ProtoReflect() protoreflect.Message
type RotationProxyServiceClient ¶
type RotationProxyServiceClient interface { BatchUpdateRotations(ctx context.Context, in *BatchUpdateRotationsRequest, opts ...grpc.CallOption) (*BatchUpdateRotationsResponse, error) GetRotation(ctx context.Context, in *GetRotationRequest, opts ...grpc.CallOption) (*Rotation, error) BatchGetRotations(ctx context.Context, in *BatchGetRotationsRequest, opts ...grpc.CallOption) (*BatchGetRotationsResponse, error) }
RotationProxyServiceClient is the client API for RotationProxyService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRotationProxyServiceClient ¶
func NewRotationProxyServiceClient(cc grpc.ClientConnInterface) RotationProxyServiceClient
func NewRotationProxyServicePRPCClient ¶
func NewRotationProxyServicePRPCClient(client *prpc.Client) RotationProxyServiceClient
type RotationProxyServiceServer ¶
type RotationProxyServiceServer interface { BatchUpdateRotations(context.Context, *BatchUpdateRotationsRequest) (*BatchUpdateRotationsResponse, error) GetRotation(context.Context, *GetRotationRequest) (*Rotation, error) BatchGetRotations(context.Context, *BatchGetRotationsRequest) (*BatchGetRotationsResponse, error) }
RotationProxyServiceServer is the server API for RotationProxyService service.
type Shift ¶
type Shift struct { // The list of oncall users for this shift. Oncalls []*OncallPerson `protobuf:"bytes,1,rep,name=oncalls,proto3" json:"oncalls,omitempty"` // Timestamp of the start of the shift. StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Timestamp of the end of the shift. EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // contains filtered or unexported fields }
func (*Shift) Descriptor
deprecated
func (*Shift) FromProperty ¶
FromProperty implements datastore.PropertyConverter. It parses a '[]byte' into an embedded 'Shift' when used with the "go.chromium.org/luci/gae" library.
func (*Shift) GetEndTime ¶
func (x *Shift) GetEndTime() *timestamppb.Timestamp
func (*Shift) GetOncalls ¶
func (x *Shift) GetOncalls() []*OncallPerson
func (*Shift) GetStartTime ¶
func (x *Shift) GetStartTime() *timestamppb.Timestamp
func (*Shift) ProtoMessage ¶
func (*Shift) ProtoMessage()
func (*Shift) ProtoReflect ¶
func (x *Shift) ProtoReflect() protoreflect.Message
type UnimplementedRotationProxyServiceServer ¶
type UnimplementedRotationProxyServiceServer struct { }
UnimplementedRotationProxyServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedRotationProxyServiceServer) BatchGetRotations ¶
func (*UnimplementedRotationProxyServiceServer) BatchGetRotations(context.Context, *BatchGetRotationsRequest) (*BatchGetRotationsResponse, error)
func (*UnimplementedRotationProxyServiceServer) BatchUpdateRotations ¶
func (*UnimplementedRotationProxyServiceServer) BatchUpdateRotations(context.Context, *BatchUpdateRotationsRequest) (*BatchUpdateRotationsResponse, error)
func (*UnimplementedRotationProxyServiceServer) GetRotation ¶
func (*UnimplementedRotationProxyServiceServer) GetRotation(context.Context, *GetRotationRequest) (*Rotation, error)
type UpdateRotationRequest ¶
type UpdateRotationRequest struct { // The rotation to update. Rotation *Rotation `protobuf:"bytes,1,opt,name=rotation,proto3" json:"rotation,omitempty"` // contains filtered or unexported fields }
func (*UpdateRotationRequest) Descriptor
deprecated
func (*UpdateRotationRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRotationRequest.ProtoReflect.Descriptor instead.
func (*UpdateRotationRequest) GetRotation ¶
func (x *UpdateRotationRequest) GetRotation() *Rotation
func (*UpdateRotationRequest) ProtoMessage ¶
func (*UpdateRotationRequest) ProtoMessage()
func (*UpdateRotationRequest) ProtoReflect ¶
func (x *UpdateRotationRequest) ProtoReflect() protoreflect.Message
func (*UpdateRotationRequest) Reset ¶
func (x *UpdateRotationRequest) Reset()
func (*UpdateRotationRequest) String ¶
func (x *UpdateRotationRequest) String() string