Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Astro_ServiceDesc = grpc.ServiceDesc{ ServiceName: "astro.Astro", HandlerType: (*AstroServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Sunrise", Handler: _Astro_Sunrise_Handler, }, { MethodName: "Sunset", Handler: _Astro_Sunset_Handler, }, { MethodName: "PreSunset", Handler: _Astro_PreSunset_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "internal/astro/astro.proto", }
Astro_ServiceDesc is the grpc.ServiceDesc for Astro service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_internal_astro_astro_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAstroServer ¶
func RegisterAstroServer(s grpc.ServiceRegistrar, srv AstroServer)
Types ¶
type Astro ¶
type Astro struct { UnimplementedAstroServer services.Service // contains filtered or unexported fields }
type AstroClient ¶
type AstroClient interface { Sunrise(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) Sunset(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) PreSunset(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) }
AstroClient is the client API for Astro 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 NewAstroClient ¶
func NewAstroClient(cc grpc.ClientConnInterface) AstroClient
type AstroServer ¶
type AstroServer interface { Sunrise(context.Context, *Empty) (*Empty, error) Sunset(context.Context, *Empty) (*Empty, error) PreSunset(context.Context, *Empty) (*Empty, error) // contains filtered or unexported methods }
AstroServer is the server API for Astro service. All implementations must embed UnimplementedAstroServer for forward compatibility
type Config ¶
Config is where the information necessary to query Prometheus for the given metrics that we will keep an eye on.
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type UnimplementedAstroServer ¶
type UnimplementedAstroServer struct { }
UnimplementedAstroServer must be embedded to have forward compatible implementations.
type UnsafeAstroServer ¶
type UnsafeAstroServer interface {
// contains filtered or unexported methods
}
UnsafeAstroServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AstroServer will result in compilation errors.