api

package
v0.0.0-...-f3bd6d2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Controller_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.Controller",
	HandlerType: (*ControllerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Status",
			Handler:    _Controller_Status_Handler,
		},
		{
			MethodName: "GetRecord",
			Handler:    _Controller_GetRecord_Handler,
		},
		{
			MethodName: "CreateRecord",
			Handler:    _Controller_CreateRecord_Handler,
		},
		{
			MethodName: "DeleteRecord",
			Handler:    _Controller_DeleteRecord_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "controller.proto",
}

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

View Source
var File_controller_proto protoreflect.FileDescriptor

Functions

func RegisterControllerServer

func RegisterControllerServer(s grpc.ServiceRegistrar, srv ControllerServer)

Types

type ControllerClient

ControllerClient is the client API for Controller 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 NewControllerClient

func NewControllerClient(cc grpc.ClientConnInterface) ControllerClient

type ControllerCreateRecordReq

type ControllerCreateRecordReq struct {
	RecordType  string `protobuf:"bytes,1,opt,name=RecordType,proto3" json:"RecordType,omitempty"`
	RecordKey   string `protobuf:"bytes,2,opt,name=RecordKey,proto3" json:"RecordKey,omitempty"`
	RecordValue string `protobuf:"bytes,3,opt,name=RecordValue,proto3" json:"RecordValue,omitempty"`
	RecordTTL   int32  `protobuf:"varint,4,opt,name=RecordTTL,proto3" json:"RecordTTL,omitempty"`
	OverWrite   bool   `protobuf:"varint,5,opt,name=OverWrite,proto3" json:"OverWrite,omitempty"`
	// contains filtered or unexported fields
}

func (*ControllerCreateRecordReq) Descriptor deprecated

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

Deprecated: Use ControllerCreateRecordReq.ProtoReflect.Descriptor instead.

func (*ControllerCreateRecordReq) GetOverWrite

func (x *ControllerCreateRecordReq) GetOverWrite() bool

func (*ControllerCreateRecordReq) GetRecordKey

func (x *ControllerCreateRecordReq) GetRecordKey() string

func (*ControllerCreateRecordReq) GetRecordTTL

func (x *ControllerCreateRecordReq) GetRecordTTL() int32

func (*ControllerCreateRecordReq) GetRecordType

func (x *ControllerCreateRecordReq) GetRecordType() string

func (*ControllerCreateRecordReq) GetRecordValue

func (x *ControllerCreateRecordReq) GetRecordValue() string

func (*ControllerCreateRecordReq) ProtoMessage

func (*ControllerCreateRecordReq) ProtoMessage()

func (*ControllerCreateRecordReq) ProtoReflect

func (*ControllerCreateRecordReq) Reset

func (x *ControllerCreateRecordReq) Reset()

func (*ControllerCreateRecordReq) String

func (x *ControllerCreateRecordReq) String() string

type ControllerCreateRecordResp

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

func (*ControllerCreateRecordResp) Descriptor deprecated

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

Deprecated: Use ControllerCreateRecordResp.ProtoReflect.Descriptor instead.

func (*ControllerCreateRecordResp) GetRecordUpdateURI

func (x *ControllerCreateRecordResp) GetRecordUpdateURI() string

func (*ControllerCreateRecordResp) ProtoMessage

func (*ControllerCreateRecordResp) ProtoMessage()

func (*ControllerCreateRecordResp) ProtoReflect

func (*ControllerCreateRecordResp) Reset

func (x *ControllerCreateRecordResp) Reset()

func (*ControllerCreateRecordResp) String

func (x *ControllerCreateRecordResp) String() string

type ControllerDeleteRecordReq

type ControllerDeleteRecordReq struct {
	RecordKey string `protobuf:"bytes,2,opt,name=RecordKey,proto3" json:"RecordKey,omitempty"`
	// contains filtered or unexported fields
}

func (*ControllerDeleteRecordReq) Descriptor deprecated

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

Deprecated: Use ControllerDeleteRecordReq.ProtoReflect.Descriptor instead.

func (*ControllerDeleteRecordReq) GetRecordKey

func (x *ControllerDeleteRecordReq) GetRecordKey() string

func (*ControllerDeleteRecordReq) ProtoMessage

func (*ControllerDeleteRecordReq) ProtoMessage()

func (*ControllerDeleteRecordReq) ProtoReflect

func (*ControllerDeleteRecordReq) Reset

func (x *ControllerDeleteRecordReq) Reset()

func (*ControllerDeleteRecordReq) String

func (x *ControllerDeleteRecordReq) String() string

type ControllerDeleteRecordResp

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

func (*ControllerDeleteRecordResp) Descriptor deprecated

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

Deprecated: Use ControllerDeleteRecordResp.ProtoReflect.Descriptor instead.

func (*ControllerDeleteRecordResp) ProtoMessage

func (*ControllerDeleteRecordResp) ProtoMessage()

func (*ControllerDeleteRecordResp) ProtoReflect

func (*ControllerDeleteRecordResp) Reset

func (x *ControllerDeleteRecordResp) Reset()

func (*ControllerDeleteRecordResp) String

func (x *ControllerDeleteRecordResp) String() string

type ControllerGetRecordReq

type ControllerGetRecordReq struct {
	RecordKey string `protobuf:"bytes,2,opt,name=RecordKey,proto3" json:"RecordKey,omitempty"`
	// contains filtered or unexported fields
}

func (*ControllerGetRecordReq) Descriptor deprecated

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

Deprecated: Use ControllerGetRecordReq.ProtoReflect.Descriptor instead.

func (*ControllerGetRecordReq) GetRecordKey

func (x *ControllerGetRecordReq) GetRecordKey() string

func (*ControllerGetRecordReq) ProtoMessage

func (*ControllerGetRecordReq) ProtoMessage()

func (*ControllerGetRecordReq) ProtoReflect

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

func (*ControllerGetRecordReq) Reset

func (x *ControllerGetRecordReq) Reset()

func (*ControllerGetRecordReq) String

func (x *ControllerGetRecordReq) String() string

type ControllerGetRecordResp

type ControllerGetRecordResp struct {
	RecordKey   string `protobuf:"bytes,1,opt,name=RecordKey,proto3" json:"RecordKey,omitempty"`
	RecordValue string `protobuf:"bytes,2,opt,name=RecordValue,proto3" json:"RecordValue,omitempty"`
	// contains filtered or unexported fields
}

func (*ControllerGetRecordResp) Descriptor deprecated

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

Deprecated: Use ControllerGetRecordResp.ProtoReflect.Descriptor instead.

func (*ControllerGetRecordResp) GetRecordKey

func (x *ControllerGetRecordResp) GetRecordKey() string

func (*ControllerGetRecordResp) GetRecordValue

func (x *ControllerGetRecordResp) GetRecordValue() string

func (*ControllerGetRecordResp) ProtoMessage

func (*ControllerGetRecordResp) ProtoMessage()

func (*ControllerGetRecordResp) ProtoReflect

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

func (*ControllerGetRecordResp) Reset

func (x *ControllerGetRecordResp) Reset()

func (*ControllerGetRecordResp) String

func (x *ControllerGetRecordResp) String() string

type ControllerHealthReq

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

func (*ControllerHealthReq) Descriptor deprecated

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

Deprecated: Use ControllerHealthReq.ProtoReflect.Descriptor instead.

func (*ControllerHealthReq) ProtoMessage

func (*ControllerHealthReq) ProtoMessage()

func (*ControllerHealthReq) ProtoReflect

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

func (*ControllerHealthReq) Reset

func (x *ControllerHealthReq) Reset()

func (*ControllerHealthReq) String

func (x *ControllerHealthReq) String() string

type ControllerHealthResp

type ControllerHealthResp struct {
	Status bool `protobuf:"varint,1,opt,name=Status,proto3" json:"Status,omitempty"`
	// contains filtered or unexported fields
}

func (*ControllerHealthResp) Descriptor deprecated

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

Deprecated: Use ControllerHealthResp.ProtoReflect.Descriptor instead.

func (*ControllerHealthResp) GetStatus

func (x *ControllerHealthResp) GetStatus() bool

func (*ControllerHealthResp) ProtoMessage

func (*ControllerHealthResp) ProtoMessage()

func (*ControllerHealthResp) ProtoReflect

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

func (*ControllerHealthResp) Reset

func (x *ControllerHealthResp) Reset()

func (*ControllerHealthResp) String

func (x *ControllerHealthResp) String() string

type ControllerServer

ControllerServer is the server API for Controller service. All implementations must embed UnimplementedControllerServer for forward compatibility

type UnimplementedControllerServer

type UnimplementedControllerServer struct {
}

UnimplementedControllerServer must be embedded to have forward compatible implementations.

func (UnimplementedControllerServer) GetRecord

func (UnimplementedControllerServer) Status

type UnsafeControllerServer

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

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

Jump to

Keyboard shortcuts

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