v1

package
v0.3.0-alpha9 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CompetitionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pkg.proto.competition.v1.CompetitionService",
	HandlerType: (*CompetitionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "LoadCompetition",
			Handler:    _CompetitionService_LoadCompetition_Handler,
		},
		{
			MethodName: "FetchCoreCompetition",
			Handler:    _CompetitionService_FetchCoreCompetition_Handler,
		},
		{
			MethodName: "FetchEntireCompetition",
			Handler:    _CompetitionService_FetchEntireCompetition_Handler,
		},
		{
			MethodName: "ResetScores",
			Handler:    _CompetitionService_ResetScores_Handler,
		},
		{
			MethodName: "DeleteCompetition",
			Handler:    _CompetitionService_DeleteCompetition_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/proto/competition/v1/competition.proto",
}

CompetitionService_ServiceDesc is the grpc.ServiceDesc for CompetitionService 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 File_pkg_proto_competition_v1_competition_proto protoreflect.FileDescriptor

Functions

func RegisterCompetitionServiceServer

func RegisterCompetitionServiceServer(s grpc.ServiceRegistrar, srv CompetitionServiceServer)

Types

type Competition

type Competition struct {
	DynamicConfig *v1.DynamicConfig   `protobuf:"bytes,1,opt,name=dynamic_config,json=dynamicConfig,proto3" json:"dynamic_config,omitempty"`
	Report        *v11.Report         `protobuf:"bytes,2,opt,name=report,proto3" json:"report,omitempty"`
	HostGroups    []*v12.HostGroup    `protobuf:"bytes,3,rep,name=host_groups,json=hostGroups,proto3" json:"host_groups,omitempty"`
	Hosts         []*v13.Host         `protobuf:"bytes,4,rep,name=hosts,proto3" json:"hosts,omitempty"`
	Teams         []*v14.Team         `protobuf:"bytes,5,rep,name=teams,proto3" json:"teams,omitempty"`
	Services      []*v15.Service      `protobuf:"bytes,6,rep,name=services,proto3" json:"services,omitempty"`
	ServiceGroups []*v16.ServiceGroup `protobuf:"bytes,7,rep,name=service_groups,json=serviceGroups,proto3" json:"service_groups,omitempty"`
	Rounds        []*v17.Round        `protobuf:"bytes,8,rep,name=rounds,proto3" json:"rounds,omitempty"`
	Properties    []*v18.Property     `protobuf:"bytes,9,rep,name=properties,proto3" json:"properties,omitempty"`
	Checks        []*v19.Check        `protobuf:"bytes,10,rep,name=checks,proto3" json:"checks,omitempty"`
	Users         []*v110.User        `protobuf:"bytes,11,rep,name=users,proto3" json:"users,omitempty"`
	Policy        *v111.Policy        `protobuf:"bytes,12,opt,name=policy,proto3" json:"policy,omitempty"`
	// contains filtered or unexported fields
}

func (*Competition) Descriptor deprecated

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

Deprecated: Use Competition.ProtoReflect.Descriptor instead.

func (*Competition) GetChecks

func (x *Competition) GetChecks() []*v19.Check

func (*Competition) GetDynamicConfig

func (x *Competition) GetDynamicConfig() *v1.DynamicConfig

func (*Competition) GetHostGroups

func (x *Competition) GetHostGroups() []*v12.HostGroup

func (*Competition) GetHosts

func (x *Competition) GetHosts() []*v13.Host

func (*Competition) GetPolicy

func (x *Competition) GetPolicy() *v111.Policy

func (*Competition) GetProperties

func (x *Competition) GetProperties() []*v18.Property

func (*Competition) GetReport

func (x *Competition) GetReport() *v11.Report

func (*Competition) GetRounds

func (x *Competition) GetRounds() []*v17.Round

func (*Competition) GetServiceGroups

func (x *Competition) GetServiceGroups() []*v16.ServiceGroup

func (*Competition) GetServices

func (x *Competition) GetServices() []*v15.Service

func (*Competition) GetTeams

func (x *Competition) GetTeams() []*v14.Team

func (*Competition) GetUsers

func (x *Competition) GetUsers() []*v110.User

func (*Competition) ProtoMessage

func (*Competition) ProtoMessage()

func (*Competition) ProtoReflect

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

func (*Competition) Reset

func (x *Competition) Reset()

func (*Competition) String

func (x *Competition) String() string

type CompetitionServiceClient

type CompetitionServiceClient interface {
	LoadCompetition(ctx context.Context, in *LoadCompetitionRequest, opts ...grpc.CallOption) (*LoadCompetitionResponse, error)
	FetchCoreCompetition(ctx context.Context, in *FetchCoreCompetitionRequest, opts ...grpc.CallOption) (*FetchCoreCompetitionResponse, error)
	FetchEntireCompetition(ctx context.Context, in *FetchEntireCompetitionRequest, opts ...grpc.CallOption) (*FetchEntireCompetitionResponse, error)
	ResetScores(ctx context.Context, in *ResetScoresRequest, opts ...grpc.CallOption) (*ResetScoresResponse, error)
	DeleteCompetition(ctx context.Context, in *DeleteCompetitionRequest, opts ...grpc.CallOption) (*DeleteCompetitionResponse, error)
}

CompetitionServiceClient is the client API for CompetitionService 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.

type CompetitionServiceServer

type CompetitionServiceServer interface {
	LoadCompetition(context.Context, *LoadCompetitionRequest) (*LoadCompetitionResponse, error)
	FetchCoreCompetition(context.Context, *FetchCoreCompetitionRequest) (*FetchCoreCompetitionResponse, error)
	FetchEntireCompetition(context.Context, *FetchEntireCompetitionRequest) (*FetchEntireCompetitionResponse, error)
	ResetScores(context.Context, *ResetScoresRequest) (*ResetScoresResponse, error)
	DeleteCompetition(context.Context, *DeleteCompetitionRequest) (*DeleteCompetitionResponse, error)
	// contains filtered or unexported methods
}

CompetitionServiceServer is the server API for CompetitionService service. All implementations must embed UnimplementedCompetitionServiceServer for forward compatibility

type DeleteCompetitionRequest

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

func (*DeleteCompetitionRequest) Descriptor deprecated

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

Deprecated: Use DeleteCompetitionRequest.ProtoReflect.Descriptor instead.

func (*DeleteCompetitionRequest) ProtoMessage

func (*DeleteCompetitionRequest) ProtoMessage()

func (*DeleteCompetitionRequest) ProtoReflect

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

func (*DeleteCompetitionRequest) Reset

func (x *DeleteCompetitionRequest) Reset()

func (*DeleteCompetitionRequest) String

func (x *DeleteCompetitionRequest) String() string

type DeleteCompetitionResponse

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

func (*DeleteCompetitionResponse) Descriptor deprecated

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

Deprecated: Use DeleteCompetitionResponse.ProtoReflect.Descriptor instead.

func (*DeleteCompetitionResponse) ProtoMessage

func (*DeleteCompetitionResponse) ProtoMessage()

func (*DeleteCompetitionResponse) ProtoReflect

func (*DeleteCompetitionResponse) Reset

func (x *DeleteCompetitionResponse) Reset()

func (*DeleteCompetitionResponse) String

func (x *DeleteCompetitionResponse) String() string

type FetchCoreCompetitionRequest

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

func (*FetchCoreCompetitionRequest) Descriptor deprecated

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

Deprecated: Use FetchCoreCompetitionRequest.ProtoReflect.Descriptor instead.

func (*FetchCoreCompetitionRequest) ProtoMessage

func (*FetchCoreCompetitionRequest) ProtoMessage()

func (*FetchCoreCompetitionRequest) ProtoReflect

func (*FetchCoreCompetitionRequest) Reset

func (x *FetchCoreCompetitionRequest) Reset()

func (*FetchCoreCompetitionRequest) String

func (x *FetchCoreCompetitionRequest) String() string

type FetchCoreCompetitionResponse

type FetchCoreCompetitionResponse struct {
	Competition *Competition `protobuf:"bytes,1,opt,name=competition,proto3" json:"competition,omitempty"`
	// contains filtered or unexported fields
}

func (*FetchCoreCompetitionResponse) Descriptor deprecated

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

Deprecated: Use FetchCoreCompetitionResponse.ProtoReflect.Descriptor instead.

func (*FetchCoreCompetitionResponse) GetCompetition

func (x *FetchCoreCompetitionResponse) GetCompetition() *Competition

func (*FetchCoreCompetitionResponse) ProtoMessage

func (*FetchCoreCompetitionResponse) ProtoMessage()

func (*FetchCoreCompetitionResponse) ProtoReflect

func (*FetchCoreCompetitionResponse) Reset

func (x *FetchCoreCompetitionResponse) Reset()

func (*FetchCoreCompetitionResponse) String

type FetchEntireCompetitionRequest

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

func (*FetchEntireCompetitionRequest) Descriptor deprecated

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

Deprecated: Use FetchEntireCompetitionRequest.ProtoReflect.Descriptor instead.

func (*FetchEntireCompetitionRequest) ProtoMessage

func (*FetchEntireCompetitionRequest) ProtoMessage()

func (*FetchEntireCompetitionRequest) ProtoReflect

func (*FetchEntireCompetitionRequest) Reset

func (x *FetchEntireCompetitionRequest) Reset()

func (*FetchEntireCompetitionRequest) String

type FetchEntireCompetitionResponse

type FetchEntireCompetitionResponse struct {
	Competition *Competition `protobuf:"bytes,1,opt,name=competition,proto3" json:"competition,omitempty"`
	// contains filtered or unexported fields
}

func (*FetchEntireCompetitionResponse) Descriptor deprecated

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

Deprecated: Use FetchEntireCompetitionResponse.ProtoReflect.Descriptor instead.

func (*FetchEntireCompetitionResponse) GetCompetition

func (x *FetchEntireCompetitionResponse) GetCompetition() *Competition

func (*FetchEntireCompetitionResponse) ProtoMessage

func (*FetchEntireCompetitionResponse) ProtoMessage()

func (*FetchEntireCompetitionResponse) ProtoReflect

func (*FetchEntireCompetitionResponse) Reset

func (x *FetchEntireCompetitionResponse) Reset()

func (*FetchEntireCompetitionResponse) String

type LoadCompetitionRequest

type LoadCompetitionRequest struct {
	Competition *Competition `protobuf:"bytes,1,opt,name=competition,proto3" json:"competition,omitempty"`
	// contains filtered or unexported fields
}

func (*LoadCompetitionRequest) Descriptor deprecated

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

Deprecated: Use LoadCompetitionRequest.ProtoReflect.Descriptor instead.

func (*LoadCompetitionRequest) GetCompetition

func (x *LoadCompetitionRequest) GetCompetition() *Competition

func (*LoadCompetitionRequest) ProtoMessage

func (*LoadCompetitionRequest) ProtoMessage()

func (*LoadCompetitionRequest) ProtoReflect

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

func (*LoadCompetitionRequest) Reset

func (x *LoadCompetitionRequest) Reset()

func (*LoadCompetitionRequest) String

func (x *LoadCompetitionRequest) String() string

type LoadCompetitionResponse

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

func (*LoadCompetitionResponse) Descriptor deprecated

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

Deprecated: Use LoadCompetitionResponse.ProtoReflect.Descriptor instead.

func (*LoadCompetitionResponse) ProtoMessage

func (*LoadCompetitionResponse) ProtoMessage()

func (*LoadCompetitionResponse) ProtoReflect

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

func (*LoadCompetitionResponse) Reset

func (x *LoadCompetitionResponse) Reset()

func (*LoadCompetitionResponse) String

func (x *LoadCompetitionResponse) String() string

type ResetScoresRequest

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

func (*ResetScoresRequest) Descriptor deprecated

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

Deprecated: Use ResetScoresRequest.ProtoReflect.Descriptor instead.

func (*ResetScoresRequest) ProtoMessage

func (*ResetScoresRequest) ProtoMessage()

func (*ResetScoresRequest) ProtoReflect

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

func (*ResetScoresRequest) Reset

func (x *ResetScoresRequest) Reset()

func (*ResetScoresRequest) String

func (x *ResetScoresRequest) String() string

type ResetScoresResponse

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

func (*ResetScoresResponse) Descriptor deprecated

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

Deprecated: Use ResetScoresResponse.ProtoReflect.Descriptor instead.

func (*ResetScoresResponse) ProtoMessage

func (*ResetScoresResponse) ProtoMessage()

func (*ResetScoresResponse) ProtoReflect

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

func (*ResetScoresResponse) Reset

func (x *ResetScoresResponse) Reset()

func (*ResetScoresResponse) String

func (x *ResetScoresResponse) String() string

type UnimplementedCompetitionServiceServer

type UnimplementedCompetitionServiceServer struct {
}

UnimplementedCompetitionServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCompetitionServiceServer) DeleteCompetition

func (UnimplementedCompetitionServiceServer) FetchCoreCompetition

func (UnimplementedCompetitionServiceServer) LoadCompetition

func (UnimplementedCompetitionServiceServer) ResetScores

type UnsafeCompetitionServiceServer

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

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

Jump to

Keyboard shortcuts

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