api

package
v0.0.0-...-56a4118 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_nameserver_proto protoreflect.FileDescriptor
View Source
var Nameserver_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.Nameserver",
	HandlerType: (*NameserverServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Status",
			Handler:    _Nameserver_Status_Handler,
		},
		{
			MethodName: "GetRecord",
			Handler:    _Nameserver_GetRecord_Handler,
		},
		{
			MethodName: "CreateRecord",
			Handler:    _Nameserver_CreateRecord_Handler,
		},
		{
			MethodName: "DeleteRecord",
			Handler:    _Nameserver_DeleteRecord_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "nameserver.proto",
}

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

Functions

func RegisterNameserverServer

func RegisterNameserverServer(s grpc.ServiceRegistrar, srv NameserverServer)

Types

type NameserverClient

NameserverClient is the client API for Nameserver 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 NewNameserverClient

func NewNameserverClient(cc grpc.ClientConnInterface) NameserverClient

type NameserverCreateRecordReq

type NameserverCreateRecordReq 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 (*NameserverCreateRecordReq) Descriptor deprecated

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

Deprecated: Use NameserverCreateRecordReq.ProtoReflect.Descriptor instead.

func (*NameserverCreateRecordReq) GetOverWrite

func (x *NameserverCreateRecordReq) GetOverWrite() bool

func (*NameserverCreateRecordReq) GetRecordKey

func (x *NameserverCreateRecordReq) GetRecordKey() string

func (*NameserverCreateRecordReq) GetRecordTTL

func (x *NameserverCreateRecordReq) GetRecordTTL() int32

func (*NameserverCreateRecordReq) GetRecordType

func (x *NameserverCreateRecordReq) GetRecordType() string

func (*NameserverCreateRecordReq) GetRecordValue

func (x *NameserverCreateRecordReq) GetRecordValue() string

func (*NameserverCreateRecordReq) ProtoMessage

func (*NameserverCreateRecordReq) ProtoMessage()

func (*NameserverCreateRecordReq) ProtoReflect

func (*NameserverCreateRecordReq) Reset

func (x *NameserverCreateRecordReq) Reset()

func (*NameserverCreateRecordReq) String

func (x *NameserverCreateRecordReq) String() string

type NameserverCreateRecordResp

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

func (*NameserverCreateRecordResp) Descriptor deprecated

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

Deprecated: Use NameserverCreateRecordResp.ProtoReflect.Descriptor instead.

func (*NameserverCreateRecordResp) ProtoMessage

func (*NameserverCreateRecordResp) ProtoMessage()

func (*NameserverCreateRecordResp) ProtoReflect

func (*NameserverCreateRecordResp) Reset

func (x *NameserverCreateRecordResp) Reset()

func (*NameserverCreateRecordResp) String

func (x *NameserverCreateRecordResp) String() string

type NameserverDeleteRecordReq

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

func (*NameserverDeleteRecordReq) Descriptor deprecated

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

Deprecated: Use NameserverDeleteRecordReq.ProtoReflect.Descriptor instead.

func (*NameserverDeleteRecordReq) GetRecordKey

func (x *NameserverDeleteRecordReq) GetRecordKey() string

func (*NameserverDeleteRecordReq) ProtoMessage

func (*NameserverDeleteRecordReq) ProtoMessage()

func (*NameserverDeleteRecordReq) ProtoReflect

func (*NameserverDeleteRecordReq) Reset

func (x *NameserverDeleteRecordReq) Reset()

func (*NameserverDeleteRecordReq) String

func (x *NameserverDeleteRecordReq) String() string

type NameserverDeleteRecordResp

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

func (*NameserverDeleteRecordResp) Descriptor deprecated

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

Deprecated: Use NameserverDeleteRecordResp.ProtoReflect.Descriptor instead.

func (*NameserverDeleteRecordResp) ProtoMessage

func (*NameserverDeleteRecordResp) ProtoMessage()

func (*NameserverDeleteRecordResp) ProtoReflect

func (*NameserverDeleteRecordResp) Reset

func (x *NameserverDeleteRecordResp) Reset()

func (*NameserverDeleteRecordResp) String

func (x *NameserverDeleteRecordResp) String() string

type NameserverGetRecordReq

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

func (*NameserverGetRecordReq) Descriptor deprecated

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

Deprecated: Use NameserverGetRecordReq.ProtoReflect.Descriptor instead.

func (*NameserverGetRecordReq) GetRecordKey

func (x *NameserverGetRecordReq) GetRecordKey() string

func (*NameserverGetRecordReq) ProtoMessage

func (*NameserverGetRecordReq) ProtoMessage()

func (*NameserverGetRecordReq) ProtoReflect

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

func (*NameserverGetRecordReq) Reset

func (x *NameserverGetRecordReq) Reset()

func (*NameserverGetRecordReq) String

func (x *NameserverGetRecordReq) String() string

type NameserverGetRecordResp

type NameserverGetRecordResp 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 (*NameserverGetRecordResp) Descriptor deprecated

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

Deprecated: Use NameserverGetRecordResp.ProtoReflect.Descriptor instead.

func (*NameserverGetRecordResp) GetRecordKey

func (x *NameserverGetRecordResp) GetRecordKey() string

func (*NameserverGetRecordResp) GetRecordValue

func (x *NameserverGetRecordResp) GetRecordValue() string

func (*NameserverGetRecordResp) ProtoMessage

func (*NameserverGetRecordResp) ProtoMessage()

func (*NameserverGetRecordResp) ProtoReflect

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

func (*NameserverGetRecordResp) Reset

func (x *NameserverGetRecordResp) Reset()

func (*NameserverGetRecordResp) String

func (x *NameserverGetRecordResp) String() string

type NameserverHealthReq

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

func (*NameserverHealthReq) Descriptor deprecated

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

Deprecated: Use NameserverHealthReq.ProtoReflect.Descriptor instead.

func (*NameserverHealthReq) ProtoMessage

func (*NameserverHealthReq) ProtoMessage()

func (*NameserverHealthReq) ProtoReflect

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

func (*NameserverHealthReq) Reset

func (x *NameserverHealthReq) Reset()

func (*NameserverHealthReq) String

func (x *NameserverHealthReq) String() string

type NameserverHealthResp

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

func (*NameserverHealthResp) Descriptor deprecated

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

Deprecated: Use NameserverHealthResp.ProtoReflect.Descriptor instead.

func (*NameserverHealthResp) GetStatus

func (x *NameserverHealthResp) GetStatus() bool

func (*NameserverHealthResp) ProtoMessage

func (*NameserverHealthResp) ProtoMessage()

func (*NameserverHealthResp) ProtoReflect

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

func (*NameserverHealthResp) Reset

func (x *NameserverHealthResp) Reset()

func (*NameserverHealthResp) String

func (x *NameserverHealthResp) String() string

type NameserverServer

NameserverServer is the server API for Nameserver service. All implementations must embed UnimplementedNameserverServer for forward compatibility

type UnimplementedNameserverServer

type UnimplementedNameserverServer struct {
}

UnimplementedNameserverServer must be embedded to have forward compatible implementations.

func (UnimplementedNameserverServer) GetRecord

func (UnimplementedNameserverServer) Status

type UnsafeNameserverServer

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

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

Jump to

Keyboard shortcuts

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