queue

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: MPL-2.0-no-copyleft-exception, MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterQueueServer

func RegisterQueueServer(s *grpc.Server, srv QueueServer)

Types

type QueueClient

type QueueClient interface {
	PutStatus(ctx context.Context, in *types.Status, opts ...grpc.CallOption) (*empty.Empty, error)
	NextQueueItem(ctx context.Context, in *types.QueueRequest, opts ...grpc.CallOption) (*types.QueueItem, error)
	Submit(ctx context.Context, in *Submission, opts ...grpc.CallOption) (*empty.Empty, error)
	SetCancel(ctx context.Context, in *types.IntID, opts ...grpc.CallOption) (*empty.Empty, error)
	GetCancel(ctx context.Context, in *types.IntID, opts ...grpc.CallOption) (*types.Status, error)
}

QueueClient is the client API for Queue service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueueClient

func NewQueueClient(cc *grpc.ClientConn) QueueClient

type QueueServer

type QueueServer interface {
	PutStatus(context.Context, *types.Status) (*empty.Empty, error)
	NextQueueItem(context.Context, *types.QueueRequest) (*types.QueueItem, error)
	Submit(context.Context, *Submission) (*empty.Empty, error)
	SetCancel(context.Context, *types.IntID) (*empty.Empty, error)
	GetCancel(context.Context, *types.IntID) (*types.Status, error)
}

QueueServer is the server API for Queue service.

type Submission

type Submission struct {
	Parent               string   `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	Fork                 string   `protobuf:"bytes,2,opt,name=fork,proto3" json:"fork,omitempty"`
	Headsha              string   `protobuf:"bytes,3,opt,name=headsha,proto3" json:"headsha,omitempty"`
	Basesha              string   `protobuf:"bytes,4,opt,name=basesha,proto3" json:"basesha,omitempty"`
	SubmittedBy          string   `protobuf:"bytes,5,opt,name=submitted_by,json=submittedBy,proto3" json:"submitted_by,omitempty"`
	TicketID             int64    `protobuf:"varint,6,opt,name=ticketID,proto3" json:"ticketID,omitempty"`
	All                  bool     `protobuf:"varint,7,opt,name=all,proto3" json:"all,omitempty"`
	Manual               bool     `protobuf:"varint,8,opt,name=manual,proto3" json:"manual,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Submission controls the submission of branches and pull requests. Some (noted) properties are not externally modifiable, so they will result in a noop if set.

func (*Submission) Descriptor

func (*Submission) Descriptor() ([]byte, []int)

func (*Submission) GetAll

func (m *Submission) GetAll() bool

func (*Submission) GetBasesha

func (m *Submission) GetBasesha() string

func (*Submission) GetFork

func (m *Submission) GetFork() string

func (*Submission) GetHeadsha

func (m *Submission) GetHeadsha() string

func (*Submission) GetManual

func (m *Submission) GetManual() bool

func (*Submission) GetParent

func (m *Submission) GetParent() string

func (*Submission) GetSubmittedBy

func (m *Submission) GetSubmittedBy() string

func (*Submission) GetTicketID

func (m *Submission) GetTicketID() int64

func (*Submission) ProtoMessage

func (*Submission) ProtoMessage()

func (*Submission) Reset

func (m *Submission) Reset()

func (*Submission) String

func (m *Submission) String() string

func (*Submission) XXX_DiscardUnknown

func (m *Submission) XXX_DiscardUnknown()

func (*Submission) XXX_Marshal

func (m *Submission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Submission) XXX_Merge

func (m *Submission) XXX_Merge(src proto.Message)

func (*Submission) XXX_Size

func (m *Submission) XXX_Size() int

func (*Submission) XXX_Unmarshal

func (m *Submission) XXX_Unmarshal(b []byte) error

type UnimplementedQueueServer

type UnimplementedQueueServer struct {
}

UnimplementedQueueServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueueServer) GetCancel

func (*UnimplementedQueueServer) NextQueueItem

func (*UnimplementedQueueServer) PutStatus

func (*UnimplementedQueueServer) SetCancel

func (*UnimplementedQueueServer) SetCancel(ctx context.Context, req *types.IntID) (*empty.Empty, error)

func (*UnimplementedQueueServer) Submit

Jump to

Keyboard shortcuts

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