scarab

package
v0.0.0-...-97e3eb8 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_scarab_common_proto protoreflect.FileDescriptor
View Source
var File_scarab_proto protoreflect.FileDescriptor
View Source
var File_scarab_ui_proto protoreflect.FileDescriptor
View Source
var ManagerUI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "scarab.ManagerUI",
	HandlerType: (*ManagerUIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "StartJob",
			Handler:    _ManagerUI_StartJob_Handler,
		},
		{
			MethodName: "StopJob",
			Handler:    _ManagerUI_StopJob_Handler,
		},
		{
			MethodName: "ListProfiles",
			Handler:    _ManagerUI_ListProfiles_Handler,
		},
		{
			MethodName: "ListJobs",
			Handler:    _ManagerUI_ListJobs_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "WatchActiveJobs",
			Handler:       _ManagerUI_WatchActiveJobs_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "scarab-ui.proto",
}

ManagerUI_ServiceDesc is the grpc.ServiceDesc for ManagerUI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Manager_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "scarab.Manager",
	HandlerType: (*ManagerServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "RegisterProfile",
			Handler:       _Manager_RegisterProfile_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "scarab.proto",
}

Manager_ServiceDesc is the grpc.ServiceDesc for Manager service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Worker_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "scarab.Worker",
	HandlerType: (*WorkerServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ReportLoad",
			Handler:       _Worker_ReportLoad_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "RunProfile",
			Handler:       _Worker_RunProfile_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "scarab.proto",
}

Worker_ServiceDesc is the grpc.ServiceDesc for Worker service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterManagerServer

func RegisterManagerServer(s grpc.ServiceRegistrar, srv ManagerServer)

func RegisterManagerUIServer

func RegisterManagerUIServer(s grpc.ServiceRegistrar, srv ManagerUIServer)

func RegisterWorkerServer

func RegisterWorkerServer(s grpc.ServiceRegistrar, srv WorkerServer)

Types

type Job

type Job struct {
	Id      string           `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Profile string           `protobuf:"bytes,2,opt,name=profile,proto3" json:"profile,omitempty"`
	Version string           `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	Args    []*JobArg        `protobuf:"bytes,4,rep,name=args,proto3" json:"args,omitempty"`
	Workers []*WorkerDetails `protobuf:"bytes,5,rep,name=workers,proto3" json:"workers,omitempty"`
	// contains filtered or unexported fields
}

func (*Job) Descriptor deprecated

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

Deprecated: Use Job.ProtoReflect.Descriptor instead.

func (*Job) GetArgs

func (x *Job) GetArgs() []*JobArg

func (*Job) GetId

func (x *Job) GetId() string

func (*Job) GetProfile

func (x *Job) GetProfile() string

func (*Job) GetVersion

func (x *Job) GetVersion() string

func (*Job) GetWorkers

func (x *Job) GetWorkers() []*WorkerDetails

func (*Job) ProtoMessage

func (*Job) ProtoMessage()

func (*Job) ProtoReflect

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

func (*Job) Reset

func (x *Job) Reset()

func (*Job) String

func (x *Job) String() string

type JobArg

type JobArg struct {
	Name  string       `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value *JobArgValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*JobArg) Descriptor deprecated

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

Deprecated: Use JobArg.ProtoReflect.Descriptor instead.

func (*JobArg) GetName

func (x *JobArg) GetName() string

func (*JobArg) GetValue

func (x *JobArg) GetValue() *JobArgValue

func (*JobArg) ProtoMessage

func (*JobArg) ProtoMessage()

func (*JobArg) ProtoReflect

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

func (*JobArg) Reset

func (x *JobArg) Reset()

func (*JobArg) String

func (x *JobArg) String() string

type JobArgOption

type JobArgOption struct {
	Option   []string `protobuf:"bytes,1,rep,name=option,proto3" json:"option,omitempty"`
	Multiple bool     `protobuf:"varint,2,opt,name=multiple,proto3" json:"multiple,omitempty"`
	// contains filtered or unexported fields
}

func (*JobArgOption) Descriptor deprecated

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

Deprecated: Use JobArgOption.ProtoReflect.Descriptor instead.

func (*JobArgOption) GetMultiple

func (x *JobArgOption) GetMultiple() bool

func (*JobArgOption) GetOption

func (x *JobArgOption) GetOption() []string

func (*JobArgOption) ProtoMessage

func (*JobArgOption) ProtoMessage()

func (*JobArgOption) ProtoReflect

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

func (*JobArgOption) Reset

func (x *JobArgOption) Reset()

func (*JobArgOption) String

func (x *JobArgOption) String() string

type JobArgValue

type JobArgValue struct {

	// Types that are assignable to Value:
	//	*JobArgValue_String_
	//	*JobArgValue_Float
	//	*JobArgValue_Bool
	//	*JobArgValue_Option
	Value isJobArgValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*JobArgValue) Descriptor deprecated

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

Deprecated: Use JobArgValue.ProtoReflect.Descriptor instead.

func (*JobArgValue) GetBool

func (x *JobArgValue) GetBool() bool

func (*JobArgValue) GetFloat

func (x *JobArgValue) GetFloat() float32

func (*JobArgValue) GetOption

func (x *JobArgValue) GetOption() *JobArgOption

func (*JobArgValue) GetString_

func (x *JobArgValue) GetString_() string

func (*JobArgValue) GetValue

func (m *JobArgValue) GetValue() isJobArgValue_Value

func (*JobArgValue) ProtoMessage

func (*JobArgValue) ProtoMessage()

func (*JobArgValue) ProtoReflect

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

func (*JobArgValue) Reset

func (x *JobArgValue) Reset()

func (*JobArgValue) String

func (x *JobArgValue) String() string

type JobArgValue_Bool

type JobArgValue_Bool struct {
	Bool bool `protobuf:"varint,3,opt,name=bool,proto3,oneof"`
}

type JobArgValue_Float

type JobArgValue_Float struct {
	Float float32 `protobuf:"fixed32,2,opt,name=float,proto3,oneof"`
}

type JobArgValue_Option

type JobArgValue_Option struct {
	Option *JobArgOption `protobuf:"bytes,4,opt,name=option,proto3,oneof"`
}

type JobArgValue_String_

type JobArgValue_String_ struct {
	String_ string `protobuf:"bytes,1,opt,name=string,proto3,oneof"`
}

type JobMetrics

type JobMetrics struct {
	Metrics []*_go.MetricFamily `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
	// contains filtered or unexported fields
}

func (*JobMetrics) Descriptor deprecated

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

Deprecated: Use JobMetrics.ProtoReflect.Descriptor instead.

func (*JobMetrics) GetMetrics

func (x *JobMetrics) GetMetrics() []*_go.MetricFamily

func (*JobMetrics) ProtoMessage

func (*JobMetrics) ProtoMessage()

func (*JobMetrics) ProtoReflect

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

func (*JobMetrics) Reset

func (x *JobMetrics) Reset()

func (*JobMetrics) String

func (x *JobMetrics) String() string

type KeepAlive

type KeepAlive struct {
	// contains filtered or unexported fields
}

func (*KeepAlive) Descriptor deprecated

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

Deprecated: Use KeepAlive.ProtoReflect.Descriptor instead.

func (*KeepAlive) ProtoMessage

func (*KeepAlive) ProtoMessage()

func (*KeepAlive) ProtoReflect

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

func (*KeepAlive) Reset

func (x *KeepAlive) Reset()

func (*KeepAlive) String

func (x *KeepAlive) String() string

type ListJobsRequest

type ListJobsRequest struct {
	// contains filtered or unexported fields
}

func (*ListJobsRequest) Descriptor deprecated

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

Deprecated: Use ListJobsRequest.ProtoReflect.Descriptor instead.

func (*ListJobsRequest) ProtoMessage

func (*ListJobsRequest) ProtoMessage()

func (*ListJobsRequest) ProtoReflect

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

func (*ListJobsRequest) Reset

func (x *ListJobsRequest) Reset()

func (*ListJobsRequest) String

func (x *ListJobsRequest) String() string

type ListJobsResponse

type ListJobsResponse struct {
	Jobs []*Job `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty"`
	// contains filtered or unexported fields
}

func (*ListJobsResponse) Descriptor deprecated

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

Deprecated: Use ListJobsResponse.ProtoReflect.Descriptor instead.

func (*ListJobsResponse) GetJobs

func (x *ListJobsResponse) GetJobs() []*Job

func (*ListJobsResponse) ProtoMessage

func (*ListJobsResponse) ProtoMessage()

func (*ListJobsResponse) ProtoReflect

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

func (*ListJobsResponse) Reset

func (x *ListJobsResponse) Reset()

func (*ListJobsResponse) String

func (x *ListJobsResponse) String() string

type ListProfilesRequest

type ListProfilesRequest struct {
	// contains filtered or unexported fields
}

func (*ListProfilesRequest) Descriptor deprecated

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

Deprecated: Use ListProfilesRequest.ProtoReflect.Descriptor instead.

func (*ListProfilesRequest) ProtoMessage

func (*ListProfilesRequest) ProtoMessage()

func (*ListProfilesRequest) ProtoReflect

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

func (*ListProfilesRequest) Reset

func (x *ListProfilesRequest) Reset()

func (*ListProfilesRequest) String

func (x *ListProfilesRequest) String() string

type ListProfilesResponse

type ListProfilesResponse struct {
	Registered []*RegisteredProfile `protobuf:"bytes,1,rep,name=registered,proto3" json:"registered,omitempty"`
	// contains filtered or unexported fields
}

func (*ListProfilesResponse) Descriptor deprecated

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

Deprecated: Use ListProfilesResponse.ProtoReflect.Descriptor instead.

func (*ListProfilesResponse) GetRegistered

func (x *ListProfilesResponse) GetRegistered() []*RegisteredProfile

func (*ListProfilesResponse) ProtoMessage

func (*ListProfilesResponse) ProtoMessage()

func (*ListProfilesResponse) ProtoReflect

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

func (*ListProfilesResponse) Reset

func (x *ListProfilesResponse) Reset()

func (*ListProfilesResponse) String

func (x *ListProfilesResponse) String() string

type LoadMetrics

type LoadMetrics struct {
	Metrics []*_go.MetricFamily `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
	// contains filtered or unexported fields
}

func (*LoadMetrics) Descriptor deprecated

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

Deprecated: Use LoadMetrics.ProtoReflect.Descriptor instead.

func (*LoadMetrics) GetMetrics

func (x *LoadMetrics) GetMetrics() []*_go.MetricFamily

func (*LoadMetrics) ProtoMessage

func (*LoadMetrics) ProtoMessage()

func (*LoadMetrics) ProtoReflect

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

func (*LoadMetrics) Reset

func (x *LoadMetrics) Reset()

func (*LoadMetrics) String

func (x *LoadMetrics) String() string

type ManagerClient

type ManagerClient interface {
	RegisterProfile(ctx context.Context, in *RegisterProfileRequest, opts ...grpc.CallOption) (Manager_RegisterProfileClient, error)
}

ManagerClient is the client API for Manager 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 NewManagerClient

func NewManagerClient(cc grpc.ClientConnInterface) ManagerClient

type ManagerServer

type ManagerServer interface {
	RegisterProfile(*RegisterProfileRequest, Manager_RegisterProfileServer) error
	// contains filtered or unexported methods
}

ManagerServer is the server API for Manager service. All implementations must embed UnimplementedManagerServer for forward compatibility

type ManagerUIClient

type ManagerUIClient interface {
	StartJob(ctx context.Context, in *StartJobRequest, opts ...grpc.CallOption) (*StartJobResponse, error)
	StopJob(ctx context.Context, in *StopJobRequest, opts ...grpc.CallOption) (*StopJobResponse, error)
	ListProfiles(ctx context.Context, in *ListProfilesRequest, opts ...grpc.CallOption) (*ListProfilesResponse, error)
	ListJobs(ctx context.Context, in *ListJobsRequest, opts ...grpc.CallOption) (*ListJobsResponse, error)
	WatchActiveJobs(ctx context.Context, in *WatchActiveJobsRequest, opts ...grpc.CallOption) (ManagerUI_WatchActiveJobsClient, error)
}

ManagerUIClient is the client API for ManagerUI 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 NewManagerUIClient

func NewManagerUIClient(cc grpc.ClientConnInterface) ManagerUIClient

type ManagerUIServer

type ManagerUIServer interface {
	StartJob(context.Context, *StartJobRequest) (*StartJobResponse, error)
	StopJob(context.Context, *StopJobRequest) (*StopJobResponse, error)
	ListProfiles(context.Context, *ListProfilesRequest) (*ListProfilesResponse, error)
	ListJobs(context.Context, *ListJobsRequest) (*ListJobsResponse, error)
	WatchActiveJobs(*WatchActiveJobsRequest, ManagerUI_WatchActiveJobsServer) error
	// contains filtered or unexported methods
}

ManagerUIServer is the server API for ManagerUI service. All implementations must embed UnimplementedManagerUIServer for forward compatibility

type ManagerUI_WatchActiveJobsClient

type ManagerUI_WatchActiveJobsClient interface {
	Recv() (*WatchActiveJobsResponse, error)
	grpc.ClientStream
}

type ManagerUI_WatchActiveJobsServer

type ManagerUI_WatchActiveJobsServer interface {
	Send(*WatchActiveJobsResponse) error
	grpc.ServerStream
}

type Manager_RegisterProfileClient

type Manager_RegisterProfileClient interface {
	Recv() (*KeepAlive, error)
	grpc.ClientStream
}

type Manager_RegisterProfileServer

type Manager_RegisterProfileServer interface {
	Send(*KeepAlive) error
	grpc.ServerStream
}

type ProfileArg

type ProfileArg struct {
	Name        string       `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string       `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Default     *JobArgValue `protobuf:"bytes,3,opt,name=default,proto3" json:"default,omitempty"`
	// contains filtered or unexported fields
}

func (*ProfileArg) Descriptor deprecated

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

Deprecated: Use ProfileArg.ProtoReflect.Descriptor instead.

func (*ProfileArg) GetDefault

func (x *ProfileArg) GetDefault() *JobArgValue

func (*ProfileArg) GetDescription

func (x *ProfileArg) GetDescription() string

func (*ProfileArg) GetName

func (x *ProfileArg) GetName() string

func (*ProfileArg) ProtoMessage

func (*ProfileArg) ProtoMessage()

func (*ProfileArg) ProtoReflect

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

func (*ProfileArg) Reset

func (x *ProfileArg) Reset()

func (*ProfileArg) String

func (x *ProfileArg) String() string

type ProfileSpec

type ProfileSpec struct {
	Profile     string        `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
	Version     string        `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Description string        `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Args        []*ProfileArg `protobuf:"bytes,4,rep,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

func (*ProfileSpec) Descriptor deprecated

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

Deprecated: Use ProfileSpec.ProtoReflect.Descriptor instead.

func (*ProfileSpec) GetArgs

func (x *ProfileSpec) GetArgs() []*ProfileArg

func (*ProfileSpec) GetDescription

func (x *ProfileSpec) GetDescription() string

func (*ProfileSpec) GetProfile

func (x *ProfileSpec) GetProfile() string

func (*ProfileSpec) GetVersion

func (x *ProfileSpec) GetVersion() string

func (*ProfileSpec) ProtoMessage

func (*ProfileSpec) ProtoMessage()

func (*ProfileSpec) ProtoReflect

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

func (*ProfileSpec) Reset

func (x *ProfileSpec) Reset()

func (*ProfileSpec) String

func (x *ProfileSpec) String() string

type RegisterProfileRequest

type RegisterProfileRequest struct {
	Spec   *ProfileSpec   `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`
	Worker *WorkerDetails `protobuf:"bytes,2,opt,name=worker,proto3" json:"worker,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterProfileRequest) Descriptor deprecated

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

Deprecated: Use RegisterProfileRequest.ProtoReflect.Descriptor instead.

func (*RegisterProfileRequest) GetSpec

func (x *RegisterProfileRequest) GetSpec() *ProfileSpec

func (*RegisterProfileRequest) GetWorker

func (x *RegisterProfileRequest) GetWorker() *WorkerDetails

func (*RegisterProfileRequest) ProtoMessage

func (*RegisterProfileRequest) ProtoMessage()

func (*RegisterProfileRequest) ProtoReflect

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

func (*RegisterProfileRequest) Reset

func (x *RegisterProfileRequest) Reset()

func (*RegisterProfileRequest) String

func (x *RegisterProfileRequest) String() string

type RegisteredProfile

type RegisteredProfile struct {
	Spec              *ProfileSpec         `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`
	FirstRegistration *timestamp.Timestamp `protobuf:"bytes,2,opt,name=firstRegistration,proto3" json:"firstRegistration,omitempty"`
	Workers           []*WorkerDetails     `protobuf:"bytes,3,rep,name=workers,proto3" json:"workers,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisteredProfile) Descriptor deprecated

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

Deprecated: Use RegisteredProfile.ProtoReflect.Descriptor instead.

func (*RegisteredProfile) GetFirstRegistration

func (x *RegisteredProfile) GetFirstRegistration() *timestamp.Timestamp

func (*RegisteredProfile) GetSpec

func (x *RegisteredProfile) GetSpec() *ProfileSpec

func (*RegisteredProfile) GetWorkers

func (x *RegisteredProfile) GetWorkers() []*WorkerDetails

func (*RegisteredProfile) ProtoMessage

func (*RegisteredProfile) ProtoMessage()

func (*RegisteredProfile) ProtoReflect

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

func (*RegisteredProfile) Reset

func (x *RegisteredProfile) Reset()

func (*RegisteredProfile) String

func (x *RegisteredProfile) String() string

type ReportLoadRequest

type ReportLoadRequest struct {
	Interval float32 `protobuf:"fixed32,1,opt,name=interval,proto3" json:"interval,omitempty"`
	// contains filtered or unexported fields
}

func (*ReportLoadRequest) Descriptor deprecated

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

Deprecated: Use ReportLoadRequest.ProtoReflect.Descriptor instead.

func (*ReportLoadRequest) GetInterval

func (x *ReportLoadRequest) GetInterval() float32

func (*ReportLoadRequest) ProtoMessage

func (*ReportLoadRequest) ProtoMessage()

func (*ReportLoadRequest) ProtoReflect

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

func (*ReportLoadRequest) Reset

func (x *ReportLoadRequest) Reset()

func (*ReportLoadRequest) String

func (x *ReportLoadRequest) String() string

type RunProfileRequest

type RunProfileRequest struct {
	Profile  string    `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
	Interval float32   `protobuf:"fixed32,2,opt,name=interval,proto3" json:"interval,omitempty"`
	MaxRate  float32   `protobuf:"fixed32,3,opt,name=maxRate,proto3" json:"maxRate,omitempty"`
	Users    uint64    `protobuf:"varint,4,opt,name=users,proto3" json:"users,omitempty"`
	Args     []*JobArg `protobuf:"bytes,5,rep,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

func (*RunProfileRequest) Descriptor deprecated

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

Deprecated: Use RunProfileRequest.ProtoReflect.Descriptor instead.

func (*RunProfileRequest) GetArgs

func (x *RunProfileRequest) GetArgs() []*JobArg

func (*RunProfileRequest) GetInterval

func (x *RunProfileRequest) GetInterval() float32

func (*RunProfileRequest) GetMaxRate

func (x *RunProfileRequest) GetMaxRate() float32

func (*RunProfileRequest) GetProfile

func (x *RunProfileRequest) GetProfile() string

func (*RunProfileRequest) GetUsers

func (x *RunProfileRequest) GetUsers() uint64

func (*RunProfileRequest) ProtoMessage

func (*RunProfileRequest) ProtoMessage()

func (*RunProfileRequest) ProtoReflect

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

func (*RunProfileRequest) Reset

func (x *RunProfileRequest) Reset()

func (*RunProfileRequest) String

func (x *RunProfileRequest) String() string

type StartJobRequest

type StartJobRequest struct {
	Profile string    `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
	Version string    `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Users   uint64    `protobuf:"varint,3,opt,name=users,proto3" json:"users,omitempty"`
	MaxRate float32   `protobuf:"fixed32,4,opt,name=maxRate,proto3" json:"maxRate,omitempty"`
	Args    []*JobArg `protobuf:"bytes,5,rep,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

func (*StartJobRequest) Descriptor deprecated

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

Deprecated: Use StartJobRequest.ProtoReflect.Descriptor instead.

func (*StartJobRequest) GetArgs

func (x *StartJobRequest) GetArgs() []*JobArg

func (*StartJobRequest) GetMaxRate

func (x *StartJobRequest) GetMaxRate() float32

func (*StartJobRequest) GetProfile

func (x *StartJobRequest) GetProfile() string

func (*StartJobRequest) GetUsers

func (x *StartJobRequest) GetUsers() uint64

func (*StartJobRequest) GetVersion

func (x *StartJobRequest) GetVersion() string

func (*StartJobRequest) ProtoMessage

func (*StartJobRequest) ProtoMessage()

func (*StartJobRequest) ProtoReflect

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

func (*StartJobRequest) Reset

func (x *StartJobRequest) Reset()

func (*StartJobRequest) String

func (x *StartJobRequest) String() string

type StartJobResponse

type StartJobResponse struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*StartJobResponse) Descriptor deprecated

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

Deprecated: Use StartJobResponse.ProtoReflect.Descriptor instead.

func (*StartJobResponse) GetId

func (x *StartJobResponse) GetId() string

func (*StartJobResponse) ProtoMessage

func (*StartJobResponse) ProtoMessage()

func (*StartJobResponse) ProtoReflect

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

func (*StartJobResponse) Reset

func (x *StartJobResponse) Reset()

func (*StartJobResponse) String

func (x *StartJobResponse) String() string

type StopJobRequest

type StopJobRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*StopJobRequest) Descriptor deprecated

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

Deprecated: Use StopJobRequest.ProtoReflect.Descriptor instead.

func (*StopJobRequest) GetId

func (x *StopJobRequest) GetId() string

func (*StopJobRequest) ProtoMessage

func (*StopJobRequest) ProtoMessage()

func (*StopJobRequest) ProtoReflect

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

func (*StopJobRequest) Reset

func (x *StopJobRequest) Reset()

func (*StopJobRequest) String

func (x *StopJobRequest) String() string

type StopJobResponse

type StopJobResponse struct {
	// contains filtered or unexported fields
}

func (*StopJobResponse) Descriptor deprecated

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

Deprecated: Use StopJobResponse.ProtoReflect.Descriptor instead.

func (*StopJobResponse) ProtoMessage

func (*StopJobResponse) ProtoMessage()

func (*StopJobResponse) ProtoReflect

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

func (*StopJobResponse) Reset

func (x *StopJobResponse) Reset()

func (*StopJobResponse) String

func (x *StopJobResponse) String() string

type UnimplementedManagerServer

type UnimplementedManagerServer struct {
}

UnimplementedManagerServer must be embedded to have forward compatible implementations.

func (UnimplementedManagerServer) RegisterProfile

type UnimplementedManagerUIServer

type UnimplementedManagerUIServer struct {
}

UnimplementedManagerUIServer must be embedded to have forward compatible implementations.

func (UnimplementedManagerUIServer) ListJobs

func (UnimplementedManagerUIServer) ListProfiles

func (UnimplementedManagerUIServer) StartJob

func (UnimplementedManagerUIServer) StopJob

func (UnimplementedManagerUIServer) WatchActiveJobs

type UnimplementedWorkerServer

type UnimplementedWorkerServer struct {
}

UnimplementedWorkerServer must be embedded to have forward compatible implementations.

func (UnimplementedWorkerServer) ReportLoad

func (UnimplementedWorkerServer) RunProfile

type UnsafeManagerServer

type UnsafeManagerServer interface {
	// contains filtered or unexported methods
}

UnsafeManagerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ManagerServer will result in compilation errors.

type UnsafeManagerUIServer

type UnsafeManagerUIServer interface {
	// contains filtered or unexported methods
}

UnsafeManagerUIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ManagerUIServer will result in compilation errors.

type UnsafeWorkerServer

type UnsafeWorkerServer interface {
	// contains filtered or unexported methods
}

UnsafeWorkerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WorkerServer will result in compilation errors.

type WatchActiveJobsRequest

type WatchActiveJobsRequest struct {
	// contains filtered or unexported fields
}

func (*WatchActiveJobsRequest) Descriptor deprecated

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

Deprecated: Use WatchActiveJobsRequest.ProtoReflect.Descriptor instead.

func (*WatchActiveJobsRequest) ProtoMessage

func (*WatchActiveJobsRequest) ProtoMessage()

func (*WatchActiveJobsRequest) ProtoReflect

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

func (*WatchActiveJobsRequest) Reset

func (x *WatchActiveJobsRequest) Reset()

func (*WatchActiveJobsRequest) String

func (x *WatchActiveJobsRequest) String() string

type WatchActiveJobsResponse

type WatchActiveJobsResponse struct {
	// contains filtered or unexported fields
}

func (*WatchActiveJobsResponse) Descriptor deprecated

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

Deprecated: Use WatchActiveJobsResponse.ProtoReflect.Descriptor instead.

func (*WatchActiveJobsResponse) ProtoMessage

func (*WatchActiveJobsResponse) ProtoMessage()

func (*WatchActiveJobsResponse) ProtoReflect

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

func (*WatchActiveJobsResponse) Reset

func (x *WatchActiveJobsResponse) Reset()

func (*WatchActiveJobsResponse) String

func (x *WatchActiveJobsResponse) String() string

type WorkerClient

type WorkerClient interface {
	ReportLoad(ctx context.Context, in *ReportLoadRequest, opts ...grpc.CallOption) (Worker_ReportLoadClient, error)
	RunProfile(ctx context.Context, opts ...grpc.CallOption) (Worker_RunProfileClient, error)
}

WorkerClient is the client API for Worker 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 NewWorkerClient

func NewWorkerClient(cc grpc.ClientConnInterface) WorkerClient

type WorkerDetails

type WorkerDetails struct {
	Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkerDetails) Descriptor deprecated

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

Deprecated: Use WorkerDetails.ProtoReflect.Descriptor instead.

func (*WorkerDetails) GetAddr

func (x *WorkerDetails) GetAddr() string

func (*WorkerDetails) GetName

func (x *WorkerDetails) GetName() string

func (*WorkerDetails) ProtoMessage

func (*WorkerDetails) ProtoMessage()

func (*WorkerDetails) ProtoReflect

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

func (*WorkerDetails) Reset

func (x *WorkerDetails) Reset()

func (*WorkerDetails) String

func (x *WorkerDetails) String() string

type WorkerServer

type WorkerServer interface {
	ReportLoad(*ReportLoadRequest, Worker_ReportLoadServer) error
	RunProfile(Worker_RunProfileServer) error
	// contains filtered or unexported methods
}

WorkerServer is the server API for Worker service. All implementations must embed UnimplementedWorkerServer for forward compatibility

type Worker_ReportLoadClient

type Worker_ReportLoadClient interface {
	Recv() (*LoadMetrics, error)
	grpc.ClientStream
}

type Worker_ReportLoadServer

type Worker_ReportLoadServer interface {
	Send(*LoadMetrics) error
	grpc.ServerStream
}

type Worker_RunProfileClient

type Worker_RunProfileClient interface {
	Send(*RunProfileRequest) error
	Recv() (*JobMetrics, error)
	grpc.ClientStream
}

type Worker_RunProfileServer

type Worker_RunProfileServer interface {
	Send(*JobMetrics) error
	Recv() (*RunProfileRequest, error)
	grpc.ServerStream
}

Jump to

Keyboard shortcuts

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