info

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2025 License: CC0-1.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InstanceType_name = map[int32]string{
		0: "RELAY",
		1: "SERVER",
		2: "CLIENT",
		3: "HUB",
		4: "DISCOVERY",
		5: "EXPLORER",
	}
	InstanceType_value = map[string]int32{
		"RELAY":     0,
		"SERVER":    1,
		"CLIENT":    2,
		"HUB":       3,
		"DISCOVERY": 4,
		"EXPLORER":  5,
	}
)

Enum value maps for InstanceType.

View Source
var File_api_info_gitstafette_info_proto protoreflect.FileDescriptor

Functions

func RegisterInfoServer

func RegisterInfoServer(s *grpc.Server, srv InfoServer)

Types

type GetInfoRequest

type GetInfoRequest struct {
	ClientId       string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	ClientEndpoint string `protobuf:"bytes,2,opt,name=client_endpoint,json=clientEndpoint,proto3" json:"client_endpoint,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInfoRequest) Descriptor deprecated

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

Deprecated: Use GetInfoRequest.ProtoReflect.Descriptor instead.

func (*GetInfoRequest) GetClientEndpoint

func (x *GetInfoRequest) GetClientEndpoint() string

func (*GetInfoRequest) GetClientId

func (x *GetInfoRequest) GetClientId() string

func (*GetInfoRequest) ProtoMessage

func (*GetInfoRequest) ProtoMessage()

func (*GetInfoRequest) ProtoReflect

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

func (*GetInfoRequest) Reset

func (x *GetInfoRequest) Reset()

func (*GetInfoRequest) String

func (x *GetInfoRequest) String() string

type GetInfoResponse

type GetInfoResponse struct {
	Alive        bool         `protobuf:"varint,1,opt,name=alive,proto3" json:"alive,omitempty"`
	InstanceType InstanceType `protobuf:"varint,2,opt,name=instance_type,json=instanceType,proto3,enum=info.InstanceType" json:"instance_type,omitempty"`
	Version      string       `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	Name         string       `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Server       *ServerInfo  `protobuf:"bytes,5,opt,name=server,proto3" json:"server,omitempty"`
	Relay        *ServerInfo  `protobuf:"bytes,6,opt,name=relay,proto3,oneof" json:"relay,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInfoResponse) Descriptor deprecated

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

Deprecated: Use GetInfoResponse.ProtoReflect.Descriptor instead.

func (*GetInfoResponse) GetAlive

func (x *GetInfoResponse) GetAlive() bool

func (*GetInfoResponse) GetInstanceType

func (x *GetInfoResponse) GetInstanceType() InstanceType

func (*GetInfoResponse) GetName

func (x *GetInfoResponse) GetName() string

func (*GetInfoResponse) GetRelay

func (x *GetInfoResponse) GetRelay() *ServerInfo

func (*GetInfoResponse) GetServer

func (x *GetInfoResponse) GetServer() *ServerInfo

func (*GetInfoResponse) GetVersion

func (x *GetInfoResponse) GetVersion() string

func (*GetInfoResponse) ProtoMessage

func (*GetInfoResponse) ProtoMessage()

func (*GetInfoResponse) ProtoReflect

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

func (*GetInfoResponse) Reset

func (x *GetInfoResponse) Reset()

func (*GetInfoResponse) String

func (x *GetInfoResponse) String() string

type InfoClient

type InfoClient interface {
	GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, error)
}

InfoClient is the client API for Info 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 NewInfoClient

func NewInfoClient(cc grpc.ClientConnInterface) InfoClient

type InfoServer

type InfoServer interface {
	GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error)
	// contains filtered or unexported methods
}

InfoServer is the server API for Info service. All implementations must embed UnimplementedInfoServer for forward compatibility

type InstanceType

type InstanceType int32
const (
	InstanceType_RELAY     InstanceType = 0
	InstanceType_SERVER    InstanceType = 1
	InstanceType_CLIENT    InstanceType = 2
	InstanceType_HUB       InstanceType = 3
	InstanceType_DISCOVERY InstanceType = 4
	InstanceType_EXPLORER  InstanceType = 5
)

func (InstanceType) Descriptor

func (InstanceType) Enum

func (x InstanceType) Enum() *InstanceType

func (InstanceType) EnumDescriptor deprecated

func (InstanceType) EnumDescriptor() ([]byte, []int)

Deprecated: Use InstanceType.Descriptor instead.

func (InstanceType) Number

func (InstanceType) String

func (x InstanceType) String() string

func (InstanceType) Type

type ServerInfo

type ServerInfo struct {
	Hostname     string  `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
	Ip           string  `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
	Port         string  `protobuf:"bytes,3,opt,name=port,proto3" json:"port,omitempty"`
	Protocol     string  `protobuf:"bytes,4,opt,name=protocol,proto3" json:"protocol,omitempty"`
	Repositories *string `protobuf:"bytes,5,opt,name=repositories,proto3,oneof" json:"repositories,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerInfo) Descriptor deprecated

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

Deprecated: Use ServerInfo.ProtoReflect.Descriptor instead.

func (*ServerInfo) GetHostname

func (x *ServerInfo) GetHostname() string

func (*ServerInfo) GetIp

func (x *ServerInfo) GetIp() string

func (*ServerInfo) GetPort

func (x *ServerInfo) GetPort() string

func (*ServerInfo) GetProtocol

func (x *ServerInfo) GetProtocol() string

func (*ServerInfo) GetRepositories

func (x *ServerInfo) GetRepositories() string

func (*ServerInfo) ProtoMessage

func (*ServerInfo) ProtoMessage()

func (*ServerInfo) ProtoReflect

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

func (*ServerInfo) Reset

func (x *ServerInfo) Reset()

func (*ServerInfo) String

func (x *ServerInfo) String() string

type UnimplementedInfoServer

type UnimplementedInfoServer struct {
}

UnimplementedInfoServer must be embedded to have forward compatible implementations.

func (UnimplementedInfoServer) GetInfo

type UnsafeInfoServer

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

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

Jump to

Keyboard shortcuts

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