statpb

package
v0.0.0-...-847a20f Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StatObj_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.StatObj",
	HandlerType: (*StatObjServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "NotifyAlive",
			Handler:    _StatObj_NotifyAlive_Handler,
		},
		{
			MethodName: "NotifyStop",
			Handler:    _StatObj_NotifyStop_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "stat.proto",
}

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

Functions

func RegisterStatObjServer

func RegisterStatObjServer(s grpc.ServiceRegistrar, srv StatObjServer)

Types

type NoArg

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

func (*NoArg) Descriptor deprecated

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

Deprecated: Use NoArg.ProtoReflect.Descriptor instead.

func (*NoArg) ProtoMessage

func (*NoArg) ProtoMessage()

func (*NoArg) ProtoReflect

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

func (*NoArg) Reset

func (x *NoArg) Reset()

func (*NoArg) String

func (x *NoArg) String() string

type Servant

type Servant struct {
	App        string `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"`
	Server     string `protobuf:"bytes,2,opt,name=server,proto3" json:"server,omitempty"`
	Servant    string `protobuf:"bytes,3,opt,name=servant,proto3" json:"servant,omitempty"`
	Pid        string `protobuf:"bytes,4,opt,name=pid,proto3" json:"pid,omitempty"`
	Ip         string `protobuf:"bytes,5,opt,name=ip,proto3" json:"ip,omitempty"`
	Port       string `protobuf:"bytes,6,opt,name=port,proto3" json:"port,omitempty"`
	PkgVersion string `protobuf:"bytes,7,opt,name=pkg_version,json=pkgVersion,proto3" json:"pkg_version,omitempty"`
	// contains filtered or unexported fields
}

func (*Servant) Descriptor deprecated

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

Deprecated: Use Servant.ProtoReflect.Descriptor instead.

func (*Servant) GetApp

func (x *Servant) GetApp() string

func (*Servant) GetIp

func (x *Servant) GetIp() string

func (*Servant) GetPid

func (x *Servant) GetPid() string

func (*Servant) GetPkgVersion

func (x *Servant) GetPkgVersion() string

func (*Servant) GetPort

func (x *Servant) GetPort() string

func (*Servant) GetServant

func (x *Servant) GetServant() string

func (*Servant) GetServer

func (x *Servant) GetServer() string

func (*Servant) ProtoMessage

func (*Servant) ProtoMessage()

func (*Servant) ProtoReflect

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

func (*Servant) Reset

func (x *Servant) Reset()

func (*Servant) String

func (x *Servant) String() string

type StatObjClient

type StatObjClient interface {
	NotifyAlive(ctx context.Context, in *Servant, opts ...grpc.CallOption) (*NoArg, error)
	NotifyStop(ctx context.Context, in *Servant, opts ...grpc.CallOption) (*NoArg, error)
}

StatObjClient is the client API for StatObj 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 NewStatObjClient

func NewStatObjClient(cc grpc.ClientConnInterface) StatObjClient

type StatObjServer

type StatObjServer interface {
	NotifyAlive(context.Context, *Servant) (*NoArg, error)
	NotifyStop(context.Context, *Servant) (*NoArg, error)
	// contains filtered or unexported methods
}

StatObjServer is the server API for StatObj service. All implementations must embed UnimplementedStatObjServer for forward compatibility

type UnimplementedStatObjServer

type UnimplementedStatObjServer struct {
}

UnimplementedStatObjServer must be embedded to have forward compatible implementations.

func (UnimplementedStatObjServer) NotifyAlive

func (UnimplementedStatObjServer) NotifyStop

type UnsafeStatObjServer

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

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

Jump to

Keyboard shortcuts

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