v1

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventsService_SubscribeToEvents_FullMethodName = "/com.pojtinger.felicitas.bofied.EventsService/SubscribeToEvents"
)
View Source
const (
	MetadataService_GetMetadata_FullMethodName = "/com.pojtinger.felicitas.bofied.MetadataService/GetMetadata"
)

Variables

View Source
var EventsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "com.pojtinger.felicitas.bofied.EventsService",
	HandlerType: (*EventsServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "SubscribeToEvents",
			Handler:       _EventsService_SubscribeToEvents_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "events.proto",
}

EventsService_ServiceDesc is the grpc.ServiceDesc for EventsService 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_events_proto protoreflect.FileDescriptor
View Source
var File_metadata_proto protoreflect.FileDescriptor
View Source
var MetadataService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "com.pojtinger.felicitas.bofied.MetadataService",
	HandlerType: (*MetadataServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetMetadata",
			Handler:    _MetadataService_GetMetadata_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "metadata.proto",
}

MetadataService_ServiceDesc is the grpc.ServiceDesc for MetadataService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterEventsServiceServer

func RegisterEventsServiceServer(s grpc.ServiceRegistrar, srv EventsServiceServer)

func RegisterMetadataServiceServer

func RegisterMetadataServiceServer(s grpc.ServiceRegistrar, srv MetadataServiceServer)

Types

type Empty added in v1.2.0

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

func (*Empty) Descriptor deprecated added in v1.2.0

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage added in v1.2.0

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect added in v1.2.0

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

func (*Empty) Reset added in v1.2.0

func (x *Empty) Reset()

func (*Empty) String added in v1.2.0

func (x *Empty) String() string

type EventMessage

type EventMessage struct {
	CreatedAt string `protobuf:"bytes,1,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"`
	Message   string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"`
	// contains filtered or unexported fields
}

func (*EventMessage) Descriptor deprecated

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

Deprecated: Use EventMessage.ProtoReflect.Descriptor instead.

func (*EventMessage) GetCreatedAt

func (x *EventMessage) GetCreatedAt() string

func (*EventMessage) GetMessage

func (x *EventMessage) GetMessage() string

func (*EventMessage) ProtoMessage

func (*EventMessage) ProtoMessage()

func (*EventMessage) ProtoReflect

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

func (*EventMessage) Reset

func (x *EventMessage) Reset()

func (*EventMessage) String

func (x *EventMessage) String() string

type EventsServiceClient

type EventsServiceClient interface {
	SubscribeToEvents(ctx context.Context, in *Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[EventMessage], error)
}

EventsServiceClient is the client API for EventsService 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 EventsServiceServer

type EventsServiceServer interface {
	SubscribeToEvents(*Empty, grpc.ServerStreamingServer[EventMessage]) error
	// contains filtered or unexported methods
}

EventsServiceServer is the server API for EventsService service. All implementations must embed UnimplementedEventsServiceServer for forward compatibility.

type EventsService_SubscribeToEventsClient

type EventsService_SubscribeToEventsClient = grpc.ServerStreamingClient[EventMessage]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type EventsService_SubscribeToEventsServer

type EventsService_SubscribeToEventsServer = grpc.ServerStreamingServer[EventMessage]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type MetadataMessage

type MetadataMessage struct {
	AdvertisedIP string `protobuf:"bytes,1,opt,name=AdvertisedIP,proto3" json:"AdvertisedIP,omitempty"`
	TFTPPort     int32  `protobuf:"varint,2,opt,name=TFTPPort,proto3" json:"TFTPPort,omitempty"`
	HTTPPort     int32  `protobuf:"varint,3,opt,name=HTTPPort,proto3" json:"HTTPPort,omitempty"`
	// contains filtered or unexported fields
}

func (*MetadataMessage) Descriptor deprecated

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

Deprecated: Use MetadataMessage.ProtoReflect.Descriptor instead.

func (*MetadataMessage) GetAdvertisedIP

func (x *MetadataMessage) GetAdvertisedIP() string

func (*MetadataMessage) GetHTTPPort added in v1.1.0

func (x *MetadataMessage) GetHTTPPort() int32

func (*MetadataMessage) GetTFTPPort added in v1.1.0

func (x *MetadataMessage) GetTFTPPort() int32

func (*MetadataMessage) ProtoMessage

func (*MetadataMessage) ProtoMessage()

func (*MetadataMessage) ProtoReflect

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

func (*MetadataMessage) Reset

func (x *MetadataMessage) Reset()

func (*MetadataMessage) String

func (x *MetadataMessage) String() string

type MetadataServiceClient

type MetadataServiceClient interface {
	GetMetadata(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*MetadataMessage, error)
}

MetadataServiceClient is the client API for MetadataService 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 MetadataServiceServer

type MetadataServiceServer interface {
	GetMetadata(context.Context, *Empty) (*MetadataMessage, error)
	// contains filtered or unexported methods
}

MetadataServiceServer is the server API for MetadataService service. All implementations must embed UnimplementedMetadataServiceServer for forward compatibility.

type UnimplementedEventsServiceServer

type UnimplementedEventsServiceServer struct{}

UnimplementedEventsServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedEventsServiceServer) SubscribeToEvents

type UnimplementedMetadataServiceServer

type UnimplementedMetadataServiceServer struct{}

UnimplementedMetadataServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedMetadataServiceServer) GetMetadata

type UnsafeEventsServiceServer added in v1.2.0

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

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

type UnsafeMetadataServiceServer added in v1.2.0

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

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

Jump to

Keyboard shortcuts

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