ipc

package
v0.0.0-...-4e30d13 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IpcService_ReloadConfiguration_FullMethodName = "/ipc.v1.IpcService/ReloadConfiguration"
)

Variables

View Source
var IpcService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ipc.v1.IpcService",
	HandlerType: (*IpcServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ReloadConfiguration",
			Handler:    _IpcService_ReloadConfiguration_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "ipc.proto",
}

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

Functions

func RegisterIpcServiceServer

func RegisterIpcServiceServer(s grpc.ServiceRegistrar, srv IpcServiceServer)

Types

type IpcServiceClient

type IpcServiceClient interface {
	ReloadConfiguration(ctx context.Context, in *ReloadConfigurationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

IpcServiceClient is the client API for IpcService 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 NewIpcServiceClient

func NewIpcServiceClient(cc grpc.ClientConnInterface) IpcServiceClient

type IpcServiceServer

type IpcServiceServer interface {
	ReloadConfiguration(context.Context, *ReloadConfigurationRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

IpcServiceServer is the server API for IpcService service. All implementations must embed UnimplementedIpcServiceServer for forward compatibility.

type ReloadConfigurationRequest

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

func (*ReloadConfigurationRequest) Descriptor deprecated

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

Deprecated: Use ReloadConfigurationRequest.ProtoReflect.Descriptor instead.

func (*ReloadConfigurationRequest) GetModule

func (x *ReloadConfigurationRequest) GetModule() string

func (*ReloadConfigurationRequest) ProtoMessage

func (*ReloadConfigurationRequest) ProtoMessage()

func (*ReloadConfigurationRequest) ProtoReflect

func (*ReloadConfigurationRequest) Reset

func (x *ReloadConfigurationRequest) Reset()

func (*ReloadConfigurationRequest) String

func (x *ReloadConfigurationRequest) String() string

type Service

type Service struct {
	UnimplementedIpcServiceServer
	// contains filtered or unexported fields
}

func New

func New(
	discord *discordgo.Session,
	db *store.Queries,
	manager *mod.ModuleManager,
	logger *slog.Logger,

) (*Service, error)

func (*Service) ReloadConfiguration

func (s *Service) ReloadConfiguration(
	ctx context.Context,
	request *ReloadConfigurationRequest,
) (*emptypb.Empty, error)

type UnimplementedIpcServiceServer

type UnimplementedIpcServiceServer struct{}

UnimplementedIpcServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedIpcServiceServer) ReloadConfiguration

type UnsafeIpcServiceServer

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

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

Jump to

Keyboard shortcuts

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