Documentation ¶
Index ¶
- Variables
- func RegisterBuildServiceServer(s grpc.ServiceRegistrar, srv BuildServiceServer)
- type BuildRequest
- func (*BuildRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BuildRequest) GetBitSize() int32
- func (x *BuildRequest) GetForceBuild() bool
- func (x *BuildRequest) GetJob() *proto1.Job
- func (x *BuildRequest) GetOrigin() string
- func (*BuildRequest) ProtoMessage()
- func (x *BuildRequest) ProtoReflect() protoreflect.Message
- func (x *BuildRequest) Reset()
- func (x *BuildRequest) String() string
- type BuildResponse
- type BuildServiceClient
- type BuildServiceServer
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetLatest64Versions() map[string]*Version
- func (x *Config) GetLatestVersions() map[string]*Version
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type Crash
- type CrashRequest
- func (*CrashRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CrashRequest) GetCrash() *Crash
- func (x *CrashRequest) GetJob() *proto1.Job
- func (x *CrashRequest) GetOrigin() string
- func (x *CrashRequest) GetVersion() string
- func (*CrashRequest) ProtoMessage()
- func (x *CrashRequest) ProtoReflect() protoreflect.Message
- func (x *CrashRequest) Reset()
- func (x *CrashRequest) String() string
- type CrashResponse
- type Crash_CrashType
- func (Crash_CrashType) Descriptor() protoreflect.EnumDescriptor
- func (x Crash_CrashType) Enum() *Crash_CrashType
- func (Crash_CrashType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Crash_CrashType) Number() protoreflect.EnumNumber
- func (x Crash_CrashType) String() string
- func (Crash_CrashType) Type() protoreflect.EnumType
- type UnimplementedBuildServiceServer
- func (UnimplementedBuildServiceServer) Build(context.Context, *BuildRequest) (*BuildResponse, error)
- func (UnimplementedBuildServiceServer) GetVersions(context.Context, *VersionRequest) (*VersionResponse, error)
- func (UnimplementedBuildServiceServer) ReportCrash(context.Context, *CrashRequest) (*CrashResponse, error)
- type UnsafeBuildServiceServer
- type Version
- func (*Version) Descriptor() ([]byte, []int)deprecated
- func (x *Version) GetBitSize() int32
- func (x *Version) GetCrashes() []*Crash
- func (x *Version) GetGithubHash() string
- func (x *Version) GetJob() *proto1.Job
- func (x *Version) GetLastBuildTime() int64
- func (x *Version) GetPath() string
- func (x *Version) GetServer() string
- func (x *Version) GetVersion() string
- func (x *Version) GetVersionDate() int64
- func (*Version) ProtoMessage()
- func (x *Version) ProtoReflect() protoreflect.Message
- func (x *Version) Reset()
- func (x *Version) String() string
- type VersionRequest
- func (*VersionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VersionRequest) GetBitSize() int32
- func (x *VersionRequest) GetJob() *proto1.Job
- func (x *VersionRequest) GetJustLatest() bool
- func (x *VersionRequest) GetOrigin() string
- func (*VersionRequest) ProtoMessage()
- func (x *VersionRequest) ProtoReflect() protoreflect.Message
- func (x *VersionRequest) Reset()
- func (x *VersionRequest) String() string
- type VersionResponse
Constants ¶
This section is empty.
Variables ¶
var ( Crash_CrashType_name = map[int32]string{ 0: "UNKNOWN", 1: "MEMORY", 2: "PANIC", } Crash_CrashType_value = map[string]int32{ "UNKNOWN": 0, "MEMORY": 1, "PANIC": 2, } )
Enum value maps for Crash_CrashType.
var File_buildserver_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBuildServiceServer ¶
func RegisterBuildServiceServer(s grpc.ServiceRegistrar, srv BuildServiceServer)
Types ¶
type BuildRequest ¶
type BuildRequest struct { Job *proto1.Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` ForceBuild bool `protobuf:"varint,2,opt,name=force_build,json=forceBuild,proto3" json:"force_build,omitempty"` Origin string `protobuf:"bytes,3,opt,name=origin,proto3" json:"origin,omitempty"` BitSize int32 `protobuf:"varint,4,opt,name=bit_size,json=bitSize,proto3" json:"bit_size,omitempty"` // contains filtered or unexported fields }
func (*BuildRequest) Descriptor
deprecated
func (*BuildRequest) Descriptor() ([]byte, []int)
Deprecated: Use BuildRequest.ProtoReflect.Descriptor instead.
func (*BuildRequest) GetBitSize ¶
func (x *BuildRequest) GetBitSize() int32
func (*BuildRequest) GetForceBuild ¶
func (x *BuildRequest) GetForceBuild() bool
func (*BuildRequest) GetJob ¶
func (x *BuildRequest) GetJob() *proto1.Job
func (*BuildRequest) GetOrigin ¶
func (x *BuildRequest) GetOrigin() string
func (*BuildRequest) ProtoMessage ¶
func (*BuildRequest) ProtoMessage()
func (*BuildRequest) ProtoReflect ¶
func (x *BuildRequest) ProtoReflect() protoreflect.Message
func (*BuildRequest) Reset ¶
func (x *BuildRequest) Reset()
func (*BuildRequest) String ¶
func (x *BuildRequest) String() string
type BuildResponse ¶
type BuildResponse struct {
// contains filtered or unexported fields
}
func (*BuildResponse) Descriptor
deprecated
func (*BuildResponse) Descriptor() ([]byte, []int)
Deprecated: Use BuildResponse.ProtoReflect.Descriptor instead.
func (*BuildResponse) ProtoMessage ¶
func (*BuildResponse) ProtoMessage()
func (*BuildResponse) ProtoReflect ¶
func (x *BuildResponse) ProtoReflect() protoreflect.Message
func (*BuildResponse) Reset ¶
func (x *BuildResponse) Reset()
func (*BuildResponse) String ¶
func (x *BuildResponse) String() string
type BuildServiceClient ¶
type BuildServiceClient interface { Build(ctx context.Context, in *BuildRequest, opts ...grpc.CallOption) (*BuildResponse, error) GetVersions(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error) ReportCrash(ctx context.Context, in *CrashRequest, opts ...grpc.CallOption) (*CrashResponse, error) }
BuildServiceClient is the client API for BuildService 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 NewBuildServiceClient ¶
func NewBuildServiceClient(cc grpc.ClientConnInterface) BuildServiceClient
type BuildServiceServer ¶
type BuildServiceServer interface { Build(context.Context, *BuildRequest) (*BuildResponse, error) GetVersions(context.Context, *VersionRequest) (*VersionResponse, error) ReportCrash(context.Context, *CrashRequest) (*CrashResponse, error) }
BuildServiceServer is the server API for BuildService service. All implementations should embed UnimplementedBuildServiceServer for forward compatibility
type Config ¶
type Config struct { LatestVersions map[string]*Version `` /* 191-byte string literal not displayed */ Latest64Versions map[string]*Version `` /* 197-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetLatest64Versions ¶
func (*Config) GetLatestVersions ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type Crash ¶
type Crash struct { ErrorMessage string `protobuf:"bytes,1,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` CrashType Crash_CrashType `protobuf:"varint,2,opt,name=crash_type,json=crashType,proto3,enum=buildserver.Crash_CrashType" json:"crash_type,omitempty"` // contains filtered or unexported fields }
func (*Crash) Descriptor
deprecated
func (*Crash) GetCrashType ¶
func (x *Crash) GetCrashType() Crash_CrashType
func (*Crash) GetErrorMessage ¶
func (*Crash) ProtoMessage ¶
func (*Crash) ProtoMessage()
func (*Crash) ProtoReflect ¶
func (x *Crash) ProtoReflect() protoreflect.Message
type CrashRequest ¶
type CrashRequest struct { Job *proto1.Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` Crash *Crash `protobuf:"bytes,2,opt,name=crash,proto3" json:"crash,omitempty"` Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` Origin string `protobuf:"bytes,4,opt,name=origin,proto3" json:"origin,omitempty"` // contains filtered or unexported fields }
func (*CrashRequest) Descriptor
deprecated
func (*CrashRequest) Descriptor() ([]byte, []int)
Deprecated: Use CrashRequest.ProtoReflect.Descriptor instead.
func (*CrashRequest) GetCrash ¶
func (x *CrashRequest) GetCrash() *Crash
func (*CrashRequest) GetJob ¶
func (x *CrashRequest) GetJob() *proto1.Job
func (*CrashRequest) GetOrigin ¶
func (x *CrashRequest) GetOrigin() string
func (*CrashRequest) GetVersion ¶
func (x *CrashRequest) GetVersion() string
func (*CrashRequest) ProtoMessage ¶
func (*CrashRequest) ProtoMessage()
func (*CrashRequest) ProtoReflect ¶
func (x *CrashRequest) ProtoReflect() protoreflect.Message
func (*CrashRequest) Reset ¶
func (x *CrashRequest) Reset()
func (*CrashRequest) String ¶
func (x *CrashRequest) String() string
type CrashResponse ¶
type CrashResponse struct {
// contains filtered or unexported fields
}
func (*CrashResponse) Descriptor
deprecated
func (*CrashResponse) Descriptor() ([]byte, []int)
Deprecated: Use CrashResponse.ProtoReflect.Descriptor instead.
func (*CrashResponse) ProtoMessage ¶
func (*CrashResponse) ProtoMessage()
func (*CrashResponse) ProtoReflect ¶
func (x *CrashResponse) ProtoReflect() protoreflect.Message
func (*CrashResponse) Reset ¶
func (x *CrashResponse) Reset()
func (*CrashResponse) String ¶
func (x *CrashResponse) String() string
type Crash_CrashType ¶
type Crash_CrashType int32
const ( Crash_UNKNOWN Crash_CrashType = 0 Crash_MEMORY Crash_CrashType = 1 Crash_PANIC Crash_CrashType = 2 )
func (Crash_CrashType) Descriptor ¶
func (Crash_CrashType) Descriptor() protoreflect.EnumDescriptor
func (Crash_CrashType) Enum ¶
func (x Crash_CrashType) Enum() *Crash_CrashType
func (Crash_CrashType) EnumDescriptor
deprecated
func (Crash_CrashType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Crash_CrashType.Descriptor instead.
func (Crash_CrashType) Number ¶
func (x Crash_CrashType) Number() protoreflect.EnumNumber
func (Crash_CrashType) String ¶
func (x Crash_CrashType) String() string
func (Crash_CrashType) Type ¶
func (Crash_CrashType) Type() protoreflect.EnumType
type UnimplementedBuildServiceServer ¶
type UnimplementedBuildServiceServer struct { }
UnimplementedBuildServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedBuildServiceServer) Build ¶
func (UnimplementedBuildServiceServer) Build(context.Context, *BuildRequest) (*BuildResponse, error)
func (UnimplementedBuildServiceServer) GetVersions ¶
func (UnimplementedBuildServiceServer) GetVersions(context.Context, *VersionRequest) (*VersionResponse, error)
func (UnimplementedBuildServiceServer) ReportCrash ¶
func (UnimplementedBuildServiceServer) ReportCrash(context.Context, *CrashRequest) (*CrashResponse, error)
type UnsafeBuildServiceServer ¶
type UnsafeBuildServiceServer interface {
// contains filtered or unexported methods
}
UnsafeBuildServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BuildServiceServer will result in compilation errors.
type Version ¶
type Version struct { Job *proto1.Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` Server string `protobuf:"bytes,4,opt,name=server,proto3" json:"server,omitempty"` VersionDate int64 `protobuf:"varint,5,opt,name=version_date,json=versionDate,proto3" json:"version_date,omitempty"` Crashes []*Crash `protobuf:"bytes,6,rep,name=crashes,proto3" json:"crashes,omitempty"` GithubHash string `protobuf:"bytes,7,opt,name=github_hash,json=githubHash,proto3" json:"github_hash,omitempty"` LastBuildTime int64 `protobuf:"varint,8,opt,name=last_build_time,json=lastBuildTime,proto3" json:"last_build_time,omitempty"` BitSize int32 `protobuf:"varint,9,opt,name=bit_size,json=bitSize,proto3" json:"bit_size,omitempty"` // contains filtered or unexported fields }
func (*Version) Descriptor
deprecated
func (*Version) GetBitSize ¶
func (*Version) GetCrashes ¶
func (*Version) GetGithubHash ¶
func (*Version) GetLastBuildTime ¶
func (*Version) GetVersion ¶
func (*Version) GetVersionDate ¶
func (*Version) ProtoMessage ¶
func (*Version) ProtoMessage()
func (*Version) ProtoReflect ¶
func (x *Version) ProtoReflect() protoreflect.Message
type VersionRequest ¶
type VersionRequest struct { JustLatest bool `protobuf:"varint,1,opt,name=just_latest,json=justLatest,proto3" json:"just_latest,omitempty"` Job *proto1.Job `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"` Origin string `protobuf:"bytes,3,opt,name=origin,proto3" json:"origin,omitempty"` BitSize int32 `protobuf:"varint,4,opt,name=bit_size,json=bitSize,proto3" json:"bit_size,omitempty"` // contains filtered or unexported fields }
func (*VersionRequest) Descriptor
deprecated
func (*VersionRequest) Descriptor() ([]byte, []int)
Deprecated: Use VersionRequest.ProtoReflect.Descriptor instead.
func (*VersionRequest) GetBitSize ¶
func (x *VersionRequest) GetBitSize() int32
func (*VersionRequest) GetJob ¶
func (x *VersionRequest) GetJob() *proto1.Job
func (*VersionRequest) GetJustLatest ¶
func (x *VersionRequest) GetJustLatest() bool
func (*VersionRequest) GetOrigin ¶
func (x *VersionRequest) GetOrigin() string
func (*VersionRequest) ProtoMessage ¶
func (*VersionRequest) ProtoMessage()
func (*VersionRequest) ProtoReflect ¶
func (x *VersionRequest) ProtoReflect() protoreflect.Message
func (*VersionRequest) Reset ¶
func (x *VersionRequest) Reset()
func (*VersionRequest) String ¶
func (x *VersionRequest) String() string
type VersionResponse ¶
type VersionResponse struct { Versions []*Version `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"` // contains filtered or unexported fields }
func (*VersionResponse) Descriptor
deprecated
func (*VersionResponse) Descriptor() ([]byte, []int)
Deprecated: Use VersionResponse.ProtoReflect.Descriptor instead.
func (*VersionResponse) GetVersions ¶
func (x *VersionResponse) GetVersions() []*Version
func (*VersionResponse) ProtoMessage ¶
func (*VersionResponse) ProtoMessage()
func (*VersionResponse) ProtoReflect ¶
func (x *VersionResponse) ProtoReflect() protoreflect.Message
func (*VersionResponse) Reset ¶
func (x *VersionResponse) Reset()
func (*VersionResponse) String ¶
func (x *VersionResponse) String() string