rotationproxy

package
v0.0.0-...-350d524 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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 (*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 (*BatchUpdateRotationsRequest) ProtoMessage

func (*BatchUpdateRotationsRequest) ProtoMessage()

func (*BatchUpdateRotationsRequest) ProtoReflect

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 (*BatchUpdateRotationsResponse) Reset

func (x *BatchUpdateRotationsResponse) Reset()

func (*BatchUpdateRotationsResponse) 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 (*DecoratedRotationProxyService) BatchUpdateRotations

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) Descriptor() ([]byte, []int)

Deprecated: Use Rotation.ProtoReflect.Descriptor instead.

func (*Rotation) FromProperty

func (p *Rotation) FromProperty(prop datastore.Property) error

FromProperty implements datastore.PropertyConverter. It parses a '[]byte' into an embedded 'Rotation' when used with the "go.chromium.org/luci/gae" library.

func (*Rotation) GetName

func (x *Rotation) GetName() string

func (*Rotation) GetShifts

func (x *Rotation) GetShifts() []*Shift

func (*Rotation) ProtoMessage

func (*Rotation) ProtoMessage()

func (*Rotation) ProtoReflect

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

func (*Rotation) Reset

func (x *Rotation) Reset()

func (*Rotation) String

func (x *Rotation) String() string

func (*Rotation) ToProperty

func (p *Rotation) ToProperty() (prop datastore.Property, err error)

ToProperty implements datastore.PropertyConverter. It causes an embedded 'Rotation' to serialize to an unindexed '[]byte' when used with the "go.chromium.org/luci/gae" library.

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 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) Descriptor() ([]byte, []int)

Deprecated: Use Shift.ProtoReflect.Descriptor instead.

func (*Shift) FromProperty

func (p *Shift) FromProperty(prop datastore.Property) error

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

func (*Shift) Reset

func (x *Shift) Reset()

func (*Shift) String

func (x *Shift) String() string

func (*Shift) ToProperty

func (p *Shift) ToProperty() (prop datastore.Property, err error)

ToProperty implements datastore.PropertyConverter. It causes an embedded 'Shift' to serialize to an unindexed '[]byte' when used with the "go.chromium.org/luci/gae" library.

type UnimplementedRotationProxyServiceServer

type UnimplementedRotationProxyServiceServer struct {
}

UnimplementedRotationProxyServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedRotationProxyServiceServer) BatchGetRotations

func (*UnimplementedRotationProxyServiceServer) BatchUpdateRotations

func (*UnimplementedRotationProxyServiceServer) GetRotation

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

Jump to

Keyboard shortcuts

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