Documentation ¶
Index ¶
- Variables
- func RegisterAgentServer(s grpc.ServiceRegistrar, srv AgentServer)
- type AgentClient
- type AgentServer
- type ReloadRequest
- type ReloadResponse
- type SyncOpsRequest
- type SyncOpsResponse
- type SyncWhitelistRequest
- func (*SyncWhitelistRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SyncWhitelistRequest) GetEnabled() bool
- func (x *SyncWhitelistRequest) GetUsers() []string
- func (*SyncWhitelistRequest) ProtoMessage()
- func (x *SyncWhitelistRequest) ProtoReflect() protoreflect.Message
- func (x *SyncWhitelistRequest) Reset()
- func (x *SyncWhitelistRequest) String() string
- type SyncWhitelistResponse
- type UnimplementedAgentServer
- func (UnimplementedAgentServer) Reload(context.Context, *ReloadRequest) (*ReloadResponse, error)
- func (UnimplementedAgentServer) SyncOps(context.Context, *SyncOpsRequest) (*SyncOpsResponse, error)
- func (UnimplementedAgentServer) SyncWhitelist(context.Context, *SyncWhitelistRequest) (*SyncWhitelistResponse, error)
- type UnsafeAgentServer
Constants ¶
This section is empty.
Variables ¶
var Agent_ServiceDesc = grpc.ServiceDesc{ ServiceName: "mcing.Agent", HandlerType: (*AgentServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Reload", Handler: _Agent_Reload_Handler, }, { MethodName: "SyncWhitelist", Handler: _Agent_SyncWhitelist_Handler, }, { MethodName: "SyncOps", Handler: _Agent_SyncOps_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/proto/agentrpc.proto", }
Agent_ServiceDesc is the grpc.ServiceDesc for Agent service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pkg_proto_agentrpc_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAgentServer ¶
func RegisterAgentServer(s grpc.ServiceRegistrar, srv AgentServer)
Types ¶
type AgentClient ¶
type AgentClient interface { Reload(ctx context.Context, in *ReloadRequest, opts ...grpc.CallOption) (*ReloadResponse, error) SyncWhitelist(ctx context.Context, in *SyncWhitelistRequest, opts ...grpc.CallOption) (*SyncWhitelistResponse, error) SyncOps(ctx context.Context, in *SyncOpsRequest, opts ...grpc.CallOption) (*SyncOpsResponse, error) }
AgentClient is the client API for Agent 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 NewAgentClient ¶
func NewAgentClient(cc grpc.ClientConnInterface) AgentClient
type AgentServer ¶
type AgentServer interface { Reload(context.Context, *ReloadRequest) (*ReloadResponse, error) SyncWhitelist(context.Context, *SyncWhitelistRequest) (*SyncWhitelistResponse, error) SyncOps(context.Context, *SyncOpsRequest) (*SyncOpsResponse, error) // contains filtered or unexported methods }
AgentServer is the server API for Agent service. All implementations must embed UnimplementedAgentServer for forward compatibility
type ReloadRequest ¶
type ReloadRequest struct {
// contains filtered or unexported fields
}
* ReloadRequest is the request message to execute `/reload` via rcon.
func (*ReloadRequest) Descriptor
deprecated
func (*ReloadRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReloadRequest.ProtoReflect.Descriptor instead.
func (*ReloadRequest) ProtoMessage ¶
func (*ReloadRequest) ProtoMessage()
func (*ReloadRequest) ProtoReflect ¶
func (x *ReloadRequest) ProtoReflect() protoreflect.Message
func (*ReloadRequest) Reset ¶
func (x *ReloadRequest) Reset()
func (*ReloadRequest) String ¶
func (x *ReloadRequest) String() string
type ReloadResponse ¶
type ReloadResponse struct {
// contains filtered or unexported fields
}
* ReloadResponse is the response message of Reload
func (*ReloadResponse) Descriptor
deprecated
func (*ReloadResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReloadResponse.ProtoReflect.Descriptor instead.
func (*ReloadResponse) ProtoMessage ¶
func (*ReloadResponse) ProtoMessage()
func (*ReloadResponse) ProtoReflect ¶
func (x *ReloadResponse) ProtoReflect() protoreflect.Message
func (*ReloadResponse) Reset ¶
func (x *ReloadResponse) Reset()
func (*ReloadResponse) String ¶
func (x *ReloadResponse) String() string
type SyncOpsRequest ¶ added in v0.4.0
type SyncOpsRequest struct { Users []string `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
* SyncWhitelistRequest is the request message to exec /whitelist via rcon
func (*SyncOpsRequest) Descriptor
deprecated
added in
v0.4.0
func (*SyncOpsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SyncOpsRequest.ProtoReflect.Descriptor instead.
func (*SyncOpsRequest) GetUsers ¶ added in v0.4.0
func (x *SyncOpsRequest) GetUsers() []string
func (*SyncOpsRequest) ProtoMessage ¶ added in v0.4.0
func (*SyncOpsRequest) ProtoMessage()
func (*SyncOpsRequest) ProtoReflect ¶ added in v0.4.0
func (x *SyncOpsRequest) ProtoReflect() protoreflect.Message
func (*SyncOpsRequest) Reset ¶ added in v0.4.0
func (x *SyncOpsRequest) Reset()
func (*SyncOpsRequest) String ¶ added in v0.4.0
func (x *SyncOpsRequest) String() string
type SyncOpsResponse ¶ added in v0.4.0
type SyncOpsResponse struct {
// contains filtered or unexported fields
}
* SyncOpsResponse is the response message of SyncOps
func (*SyncOpsResponse) Descriptor
deprecated
added in
v0.4.0
func (*SyncOpsResponse) Descriptor() ([]byte, []int)
Deprecated: Use SyncOpsResponse.ProtoReflect.Descriptor instead.
func (*SyncOpsResponse) ProtoMessage ¶ added in v0.4.0
func (*SyncOpsResponse) ProtoMessage()
func (*SyncOpsResponse) ProtoReflect ¶ added in v0.4.0
func (x *SyncOpsResponse) ProtoReflect() protoreflect.Message
func (*SyncOpsResponse) Reset ¶ added in v0.4.0
func (x *SyncOpsResponse) Reset()
func (*SyncOpsResponse) String ¶ added in v0.4.0
func (x *SyncOpsResponse) String() string
type SyncWhitelistRequest ¶ added in v0.4.0
type SyncWhitelistRequest struct { Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` Users []string `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
* SyncWhitelistRequest is the request message to exec /whitelist via rcon
func (*SyncWhitelistRequest) Descriptor
deprecated
added in
v0.4.0
func (*SyncWhitelistRequest) Descriptor() ([]byte, []int)
Deprecated: Use SyncWhitelistRequest.ProtoReflect.Descriptor instead.
func (*SyncWhitelistRequest) GetEnabled ¶ added in v0.4.0
func (x *SyncWhitelistRequest) GetEnabled() bool
func (*SyncWhitelistRequest) GetUsers ¶ added in v0.4.0
func (x *SyncWhitelistRequest) GetUsers() []string
func (*SyncWhitelistRequest) ProtoMessage ¶ added in v0.4.0
func (*SyncWhitelistRequest) ProtoMessage()
func (*SyncWhitelistRequest) ProtoReflect ¶ added in v0.4.0
func (x *SyncWhitelistRequest) ProtoReflect() protoreflect.Message
func (*SyncWhitelistRequest) Reset ¶ added in v0.4.0
func (x *SyncWhitelistRequest) Reset()
func (*SyncWhitelistRequest) String ¶ added in v0.4.0
func (x *SyncWhitelistRequest) String() string
type SyncWhitelistResponse ¶ added in v0.4.0
type SyncWhitelistResponse struct {
// contains filtered or unexported fields
}
* SyncWhitelistResponse is the response message of SyncWhitelist
func (*SyncWhitelistResponse) Descriptor
deprecated
added in
v0.4.0
func (*SyncWhitelistResponse) Descriptor() ([]byte, []int)
Deprecated: Use SyncWhitelistResponse.ProtoReflect.Descriptor instead.
func (*SyncWhitelistResponse) ProtoMessage ¶ added in v0.4.0
func (*SyncWhitelistResponse) ProtoMessage()
func (*SyncWhitelistResponse) ProtoReflect ¶ added in v0.4.0
func (x *SyncWhitelistResponse) ProtoReflect() protoreflect.Message
func (*SyncWhitelistResponse) Reset ¶ added in v0.4.0
func (x *SyncWhitelistResponse) Reset()
func (*SyncWhitelistResponse) String ¶ added in v0.4.0
func (x *SyncWhitelistResponse) String() string
type UnimplementedAgentServer ¶
type UnimplementedAgentServer struct { }
UnimplementedAgentServer must be embedded to have forward compatible implementations.
func (UnimplementedAgentServer) Reload ¶
func (UnimplementedAgentServer) Reload(context.Context, *ReloadRequest) (*ReloadResponse, error)
func (UnimplementedAgentServer) SyncOps ¶ added in v0.4.0
func (UnimplementedAgentServer) SyncOps(context.Context, *SyncOpsRequest) (*SyncOpsResponse, error)
func (UnimplementedAgentServer) SyncWhitelist ¶ added in v0.4.0
func (UnimplementedAgentServer) SyncWhitelist(context.Context, *SyncWhitelistRequest) (*SyncWhitelistResponse, error)
type UnsafeAgentServer ¶
type UnsafeAgentServer interface {
// contains filtered or unexported methods
}
UnsafeAgentServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AgentServer will result in compilation errors.