Documentation
¶
Index ¶
- Variables
- func RegisterStatObjServer(s grpc.ServiceRegistrar, srv StatObjServer)
- type NoArg
- type Servant
- func (*Servant) Descriptor() ([]byte, []int)deprecated
- func (x *Servant) GetApp() string
- func (x *Servant) GetIp() string
- func (x *Servant) GetPid() string
- func (x *Servant) GetPkgVersion() string
- func (x *Servant) GetPort() string
- func (x *Servant) GetServant() string
- func (x *Servant) GetServer() string
- func (*Servant) ProtoMessage()
- func (x *Servant) ProtoReflect() protoreflect.Message
- func (x *Servant) Reset()
- func (x *Servant) String() string
- type StatObjClient
- type StatObjServer
- type UnimplementedStatObjServer
- type UnsafeStatObjServer
Constants ¶
This section is empty.
Variables ¶
var File_stat_proto protoreflect.FileDescriptor
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) ProtoMessage ¶
func (*NoArg) ProtoMessage()
func (*NoArg) ProtoReflect ¶
func (x *NoArg) ProtoReflect() protoreflect.Message
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) GetPkgVersion ¶
func (*Servant) GetServant ¶
func (*Servant) ProtoMessage ¶
func (*Servant) ProtoMessage()
func (*Servant) ProtoReflect ¶
func (x *Servant) ProtoReflect() protoreflect.Message
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.