command

package
v5.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: MIT Imports: 13 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_app_log_command_config_proto protoreflect.FileDescriptor
View Source
var LoggerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "v2ray.core.app.log.command.LoggerService",
	HandlerType: (*LoggerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RestartLogger",
			Handler:    _LoggerService_RestartLogger_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "FollowLog",
			Handler:       _LoggerService_FollowLog_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "app/log/command/config.proto",
}

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

Functions

func RegisterLoggerServiceServer

func RegisterLoggerServiceServer(s grpc.ServiceRegistrar, srv LoggerServiceServer)

Types

type Config

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

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

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

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type FollowLogRequest

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

func (*FollowLogRequest) Descriptor deprecated

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

Deprecated: Use FollowLogRequest.ProtoReflect.Descriptor instead.

func (*FollowLogRequest) ProtoMessage

func (*FollowLogRequest) ProtoMessage()

func (*FollowLogRequest) ProtoReflect

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

func (*FollowLogRequest) Reset

func (x *FollowLogRequest) Reset()

func (*FollowLogRequest) String

func (x *FollowLogRequest) String() string

type FollowLogResponse

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

func (*FollowLogResponse) Descriptor deprecated

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

Deprecated: Use FollowLogResponse.ProtoReflect.Descriptor instead.

func (*FollowLogResponse) GetMessage

func (x *FollowLogResponse) GetMessage() string

func (*FollowLogResponse) ProtoMessage

func (*FollowLogResponse) ProtoMessage()

func (*FollowLogResponse) ProtoReflect

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

func (*FollowLogResponse) Reset

func (x *FollowLogResponse) Reset()

func (*FollowLogResponse) String

func (x *FollowLogResponse) String() string

type LoggerServer

type LoggerServer struct {
	V *core.Instance
}

LoggerServer is the implemention of LoggerService

func (*LoggerServer) FollowLog

FollowLog implements LoggerService.

func (*LoggerServer) RestartLogger

func (s *LoggerServer) RestartLogger(ctx context.Context, request *RestartLoggerRequest) (*RestartLoggerResponse, error)

RestartLogger implements LoggerService.

type LoggerServiceClient

type LoggerServiceClient interface {
	RestartLogger(ctx context.Context, in *RestartLoggerRequest, opts ...grpc.CallOption) (*RestartLoggerResponse, error)
	// Unstable interface
	FollowLog(ctx context.Context, in *FollowLogRequest, opts ...grpc.CallOption) (LoggerService_FollowLogClient, error)
}

LoggerServiceClient is the client API for LoggerService 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 LoggerServiceServer

type LoggerServiceServer interface {
	RestartLogger(context.Context, *RestartLoggerRequest) (*RestartLoggerResponse, error)
	// Unstable interface
	FollowLog(*FollowLogRequest, LoggerService_FollowLogServer) error
	// contains filtered or unexported methods
}

LoggerServiceServer is the server API for LoggerService service. All implementations must embed UnimplementedLoggerServiceServer for forward compatibility

type LoggerService_FollowLogClient

type LoggerService_FollowLogClient interface {
	Recv() (*FollowLogResponse, error)
	grpc.ClientStream
}

type LoggerService_FollowLogServer

type LoggerService_FollowLogServer interface {
	Send(*FollowLogResponse) error
	grpc.ServerStream
}

type RestartLoggerRequest

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

func (*RestartLoggerRequest) Descriptor deprecated

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

Deprecated: Use RestartLoggerRequest.ProtoReflect.Descriptor instead.

func (*RestartLoggerRequest) ProtoMessage

func (*RestartLoggerRequest) ProtoMessage()

func (*RestartLoggerRequest) ProtoReflect

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

func (*RestartLoggerRequest) Reset

func (x *RestartLoggerRequest) Reset()

func (*RestartLoggerRequest) String

func (x *RestartLoggerRequest) String() string

type RestartLoggerResponse

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

func (*RestartLoggerResponse) Descriptor deprecated

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

Deprecated: Use RestartLoggerResponse.ProtoReflect.Descriptor instead.

func (*RestartLoggerResponse) ProtoMessage

func (*RestartLoggerResponse) ProtoMessage()

func (*RestartLoggerResponse) ProtoReflect

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

func (*RestartLoggerResponse) Reset

func (x *RestartLoggerResponse) Reset()

func (*RestartLoggerResponse) String

func (x *RestartLoggerResponse) String() string

type UnimplementedLoggerServiceServer

type UnimplementedLoggerServiceServer struct {
}

UnimplementedLoggerServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedLoggerServiceServer) FollowLog

func (UnimplementedLoggerServiceServer) RestartLogger

type UnsafeLoggerServiceServer

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

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

Jump to

Keyboard shortcuts

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