ctf

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: MIT Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_ctf_ctf_proto protoreflect.FileDescriptor

Functions

func RegisterCTFServer

func RegisterCTFServer(s *grpc.Server, srv CTFServer)

Types

type CTFClient

type CTFClient interface {
	GetRingFlags(ctx context.Context, in *Ring, opts ...grpc.CallOption) (*Flags, error)
	CreateFlag(ctx context.Context, in *Flag, opts ...grpc.CallOption) (*Flag, error)
	PromoteFlag(ctx context.Context, in *Flag, opts ...grpc.CallOption) (*Flag, error)
	RemoveFlag(ctx context.Context, in *Flag, opts ...grpc.CallOption) (*empty.Empty, error)
}

CTFClient is the client API for CTF service.

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

func NewCTFClient

func NewCTFClient(cc grpc.ClientConnInterface) CTFClient

type CTFServer

type CTFServer interface {
	GetRingFlags(context.Context, *Ring) (*Flags, error)
	CreateFlag(context.Context, *Flag) (*Flag, error)
	PromoteFlag(context.Context, *Flag) (*Flag, error)
	RemoveFlag(context.Context, *Flag) (*empty.Empty, error)
}

CTFServer is the server API for CTF service.

type Flag

type Flag struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Ring int32  `protobuf:"varint,2,opt,name=ring,proto3" json:"ring,omitempty"`
	// contains filtered or unexported fields
}

func (*Flag) Descriptor deprecated

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

Deprecated: Use Flag.ProtoReflect.Descriptor instead.

func (*Flag) GetName added in v1.5.0

func (x *Flag) GetName() string

func (*Flag) GetRing added in v1.5.0

func (x *Flag) GetRing() int32

func (*Flag) ProtoMessage

func (*Flag) ProtoMessage()

func (*Flag) ProtoReflect added in v1.9.0

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

func (*Flag) Reset

func (x *Flag) Reset()

func (*Flag) String

func (x *Flag) String() string

type Flags

type Flags struct {
	Flags []*Flag `protobuf:"bytes,1,rep,name=flags,proto3" json:"flags,omitempty"`
	// contains filtered or unexported fields
}

func (*Flags) Descriptor deprecated

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

Deprecated: Use Flags.ProtoReflect.Descriptor instead.

func (*Flags) GetFlags

func (x *Flags) GetFlags() []*Flag

func (*Flags) ProtoMessage

func (*Flags) ProtoMessage()

func (*Flags) ProtoReflect added in v1.9.0

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

func (*Flags) Reset

func (x *Flags) Reset()

func (*Flags) String

func (x *Flags) String() string

type Ring added in v1.5.0

type Ring struct {
	Ring int32 `protobuf:"varint,1,opt,name=ring,proto3" json:"ring,omitempty"`
	// contains filtered or unexported fields
}

func (*Ring) Descriptor deprecated added in v1.5.0

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

Deprecated: Use Ring.ProtoReflect.Descriptor instead.

func (*Ring) GetRing added in v1.5.0

func (x *Ring) GetRing() int32

func (*Ring) ProtoMessage added in v1.5.0

func (*Ring) ProtoMessage()

func (*Ring) ProtoReflect added in v1.9.0

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

func (*Ring) Reset added in v1.5.0

func (x *Ring) Reset()

func (*Ring) String added in v1.5.0

func (x *Ring) String() string

type UnimplementedCTFServer

type UnimplementedCTFServer struct {
}

UnimplementedCTFServer can be embedded to have forward compatible implementations.

func (*UnimplementedCTFServer) CreateFlag added in v1.5.0

func (*UnimplementedCTFServer) CreateFlag(context.Context, *Flag) (*Flag, error)

func (*UnimplementedCTFServer) GetRingFlags added in v1.5.0

func (*UnimplementedCTFServer) GetRingFlags(context.Context, *Ring) (*Flags, error)

func (*UnimplementedCTFServer) PromoteFlag added in v1.5.0

func (*UnimplementedCTFServer) PromoteFlag(context.Context, *Flag) (*Flag, error)

func (*UnimplementedCTFServer) RemoveFlag added in v1.5.0

Jump to

Keyboard shortcuts

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