version

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_version_proto protoreflect.FileDescriptor

Functions

func RegisterServiceServer

func RegisterServiceServer(s *grpc.Server, srv ServiceServer)

Types

type Request

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

The `request` message is an empty one.

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect added in v0.3.0

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Response

type Response struct {

	// falco version
	Version    string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Major      uint32 `protobuf:"varint,2,opt,name=major,proto3" json:"major,omitempty"`
	Minor      uint32 `protobuf:"varint,3,opt,name=minor,proto3" json:"minor,omitempty"`
	Patch      uint32 `protobuf:"varint,4,opt,name=patch,proto3" json:"patch,omitempty"`
	Prerelease string `protobuf:"bytes,5,opt,name=prerelease,proto3" json:"prerelease,omitempty"`
	Build      string `protobuf:"bytes,6,opt,name=build,proto3" json:"build,omitempty"`
	// falco engine version
	EngineVersion        uint32 `protobuf:"varint,7,opt,name=engine_version,json=engineVersion,proto3" json:"engine_version,omitempty"`
	EngineFieldsChecksum string `protobuf:"bytes,8,opt,name=engine_fields_checksum,json=engineFieldsChecksum,proto3" json:"engine_fields_checksum,omitempty"`
	// contains filtered or unexported fields
}

The `response` message contains the version of Falco. It provides the whole version as a string and also its parts as per semver 2.0 specification (https://semver.org).

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetBuild

func (x *Response) GetBuild() string

func (*Response) GetEngineFieldsChecksum added in v0.3.0

func (x *Response) GetEngineFieldsChecksum() string

func (*Response) GetEngineVersion added in v0.3.0

func (x *Response) GetEngineVersion() uint32

func (*Response) GetMajor

func (x *Response) GetMajor() uint32

func (*Response) GetMinor

func (x *Response) GetMinor() uint32

func (*Response) GetPatch

func (x *Response) GetPatch() uint32

func (*Response) GetPrerelease

func (x *Response) GetPrerelease() string

func (*Response) GetVersion

func (x *Response) GetVersion() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect added in v0.3.0

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type ServiceClient

type ServiceClient interface {
	Version(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}

ServiceClient is the client API for Service service.

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

func NewServiceClient

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceServer

type ServiceServer interface {
	Version(context.Context, *Request) (*Response, error)
}

ServiceServer is the server API for Service service.

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedServiceServer) Version

Directories

Path Synopsis
Package mock_version is a generated GoMock package.
Package mock_version is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳