v0

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CustomDnsResponse_Status_name = map[int32]string{
		0: "UNKNOWN",
		1: "ACCEPTED",
		2: "REJECTED",
	}
	CustomDnsResponse_Status_value = map[string]int32{
		"UNKNOWN":  0,
		"ACCEPTED": 1,
		"REJECTED": 2,
	}
)

Enum value maps for CustomDnsResponse_Status.

View Source
var DataService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "wgtwo.data.v0.DataService",
	HandlerType: (*DataServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SetCustomDns",
			Handler:    _DataService_SetCustomDns_Handler,
		},
		{
			MethodName: "ClearCustomDns",
			Handler:    _DataService_ClearCustomDns_Handler,
		},
		{
			MethodName: "GetCustomDns",
			Handler:    _DataService_GetCustomDns_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "wgtwo/data/v0/data.proto",
}

DataService_ServiceDesc is the grpc.ServiceDesc for DataService 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_wgtwo_data_v0_data_proto protoreflect.FileDescriptor

Functions

func RegisterDataServiceServer

func RegisterDataServiceServer(s grpc.ServiceRegistrar, srv DataServiceServer)

Types

type ClearCustomDnsRequest

type ClearCustomDnsRequest struct {
	Subscriber *v0.PhoneNumber `protobuf:"bytes,1,opt,name=subscriber,proto3" json:"subscriber,omitempty"`
	// contains filtered or unexported fields
}

func (*ClearCustomDnsRequest) Descriptor deprecated

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

Deprecated: Use ClearCustomDnsRequest.ProtoReflect.Descriptor instead.

func (*ClearCustomDnsRequest) GetSubscriber

func (x *ClearCustomDnsRequest) GetSubscriber() *v0.PhoneNumber

func (*ClearCustomDnsRequest) ProtoMessage

func (*ClearCustomDnsRequest) ProtoMessage()

func (*ClearCustomDnsRequest) ProtoReflect

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

func (*ClearCustomDnsRequest) Reset

func (x *ClearCustomDnsRequest) Reset()

func (*ClearCustomDnsRequest) String

func (x *ClearCustomDnsRequest) String() string

type CustomDnsResponse

type CustomDnsResponse struct {
	Status       CustomDnsResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=wgtwo.data.v0.CustomDnsResponse_Status" json:"status,omitempty"`
	ErrorMessage string                   `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	// contains filtered or unexported fields
}

func (*CustomDnsResponse) Descriptor deprecated

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

Deprecated: Use CustomDnsResponse.ProtoReflect.Descriptor instead.

func (*CustomDnsResponse) GetErrorMessage

func (x *CustomDnsResponse) GetErrorMessage() string

func (*CustomDnsResponse) GetStatus

func (*CustomDnsResponse) ProtoMessage

func (*CustomDnsResponse) ProtoMessage()

func (*CustomDnsResponse) ProtoReflect

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

func (*CustomDnsResponse) Reset

func (x *CustomDnsResponse) Reset()

func (*CustomDnsResponse) String

func (x *CustomDnsResponse) String() string

type CustomDnsResponse_Status

type CustomDnsResponse_Status int32
const (
	CustomDnsResponse_UNKNOWN  CustomDnsResponse_Status = 0
	CustomDnsResponse_ACCEPTED CustomDnsResponse_Status = 1
	CustomDnsResponse_REJECTED CustomDnsResponse_Status = 2
)

func (CustomDnsResponse_Status) Descriptor

func (CustomDnsResponse_Status) Enum

func (CustomDnsResponse_Status) EnumDescriptor deprecated

func (CustomDnsResponse_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use CustomDnsResponse_Status.Descriptor instead.

func (CustomDnsResponse_Status) Number

func (CustomDnsResponse_Status) String

func (x CustomDnsResponse_Status) String() string

func (CustomDnsResponse_Status) Type

type DataServiceClient

type DataServiceClient interface {
	SetCustomDns(ctx context.Context, in *SetCustomDnsRequest, opts ...grpc.CallOption) (*CustomDnsResponse, error)
	ClearCustomDns(ctx context.Context, in *ClearCustomDnsRequest, opts ...grpc.CallOption) (*CustomDnsResponse, error)
	GetCustomDns(ctx context.Context, in *GetCustomDnsRequest, opts ...grpc.CallOption) (*GetCustomDnsResponse, error)
}

DataServiceClient is the client API for DataService 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 DataServiceServer

type DataServiceServer interface {
	SetCustomDns(context.Context, *SetCustomDnsRequest) (*CustomDnsResponse, error)
	ClearCustomDns(context.Context, *ClearCustomDnsRequest) (*CustomDnsResponse, error)
	GetCustomDns(context.Context, *GetCustomDnsRequest) (*GetCustomDnsResponse, error)
}

DataServiceServer is the server API for DataService service. All implementations should embed UnimplementedDataServiceServer for forward compatibility

type GetCustomDnsRequest

type GetCustomDnsRequest struct {
	Subscriber *v0.PhoneNumber `protobuf:"bytes,1,opt,name=subscriber,proto3" json:"subscriber,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCustomDnsRequest) Descriptor deprecated

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

Deprecated: Use GetCustomDnsRequest.ProtoReflect.Descriptor instead.

func (*GetCustomDnsRequest) GetSubscriber

func (x *GetCustomDnsRequest) GetSubscriber() *v0.PhoneNumber

func (*GetCustomDnsRequest) ProtoMessage

func (*GetCustomDnsRequest) ProtoMessage()

func (*GetCustomDnsRequest) ProtoReflect

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

func (*GetCustomDnsRequest) Reset

func (x *GetCustomDnsRequest) Reset()

func (*GetCustomDnsRequest) String

func (x *GetCustomDnsRequest) String() string

type GetCustomDnsResponse

type GetCustomDnsResponse struct {
	DnsV4 *IpV4Pair `protobuf:"bytes,1,opt,name=dnsV4,proto3" json:"dnsV4,omitempty"`
	DnsV6 *IpV6Pair `protobuf:"bytes,2,opt,name=dnsV6,proto3" json:"dnsV6,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCustomDnsResponse) Descriptor deprecated

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

Deprecated: Use GetCustomDnsResponse.ProtoReflect.Descriptor instead.

func (*GetCustomDnsResponse) GetDnsV4

func (x *GetCustomDnsResponse) GetDnsV4() *IpV4Pair

func (*GetCustomDnsResponse) GetDnsV6

func (x *GetCustomDnsResponse) GetDnsV6() *IpV6Pair

func (*GetCustomDnsResponse) ProtoMessage

func (*GetCustomDnsResponse) ProtoMessage()

func (*GetCustomDnsResponse) ProtoReflect

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

func (*GetCustomDnsResponse) Reset

func (x *GetCustomDnsResponse) Reset()

func (*GetCustomDnsResponse) String

func (x *GetCustomDnsResponse) String() string

type IpAddressV4

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

func (*IpAddressV4) Descriptor deprecated

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

Deprecated: Use IpAddressV4.ProtoReflect.Descriptor instead.

func (*IpAddressV4) GetIpv4

func (x *IpAddressV4) GetIpv4() string

func (*IpAddressV4) ProtoMessage

func (*IpAddressV4) ProtoMessage()

func (*IpAddressV4) ProtoReflect

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

func (*IpAddressV4) Reset

func (x *IpAddressV4) Reset()

func (*IpAddressV4) String

func (x *IpAddressV4) String() string

type IpAddressV6

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

func (*IpAddressV6) Descriptor deprecated

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

Deprecated: Use IpAddressV6.ProtoReflect.Descriptor instead.

func (*IpAddressV6) GetIpv6

func (x *IpAddressV6) GetIpv6() string

func (*IpAddressV6) ProtoMessage

func (*IpAddressV6) ProtoMessage()

func (*IpAddressV6) ProtoReflect

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

func (*IpAddressV6) Reset

func (x *IpAddressV6) Reset()

func (*IpAddressV6) String

func (x *IpAddressV6) String() string

type IpV4Pair

type IpV4Pair struct {
	Primary   *IpAddressV4 `protobuf:"bytes,1,opt,name=primary,proto3" json:"primary,omitempty"`
	Secondary *IpAddressV4 `protobuf:"bytes,2,opt,name=secondary,proto3" json:"secondary,omitempty"`
	// contains filtered or unexported fields
}

func (*IpV4Pair) Descriptor deprecated

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

Deprecated: Use IpV4Pair.ProtoReflect.Descriptor instead.

func (*IpV4Pair) GetPrimary

func (x *IpV4Pair) GetPrimary() *IpAddressV4

func (*IpV4Pair) GetSecondary

func (x *IpV4Pair) GetSecondary() *IpAddressV4

func (*IpV4Pair) ProtoMessage

func (*IpV4Pair) ProtoMessage()

func (*IpV4Pair) ProtoReflect

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

func (*IpV4Pair) Reset

func (x *IpV4Pair) Reset()

func (*IpV4Pair) String

func (x *IpV4Pair) String() string

type IpV6Pair

type IpV6Pair struct {
	Primary   *IpAddressV6 `protobuf:"bytes,1,opt,name=primary,proto3" json:"primary,omitempty"`
	Secondary *IpAddressV6 `protobuf:"bytes,2,opt,name=secondary,proto3" json:"secondary,omitempty"`
	// contains filtered or unexported fields
}

func (*IpV6Pair) Descriptor deprecated

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

Deprecated: Use IpV6Pair.ProtoReflect.Descriptor instead.

func (*IpV6Pair) GetPrimary

func (x *IpV6Pair) GetPrimary() *IpAddressV6

func (*IpV6Pair) GetSecondary

func (x *IpV6Pair) GetSecondary() *IpAddressV6

func (*IpV6Pair) ProtoMessage

func (*IpV6Pair) ProtoMessage()

func (*IpV6Pair) ProtoReflect

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

func (*IpV6Pair) Reset

func (x *IpV6Pair) Reset()

func (*IpV6Pair) String

func (x *IpV6Pair) String() string

type SetCustomDnsRequest

type SetCustomDnsRequest struct {
	Subscriber *v0.PhoneNumber `protobuf:"bytes,1,opt,name=subscriber,proto3" json:"subscriber,omitempty"`
	DnsV4      *IpV4Pair       `protobuf:"bytes,2,opt,name=dnsV4,proto3" json:"dnsV4,omitempty"`
	DnsV6      *IpV6Pair       `protobuf:"bytes,3,opt,name=dnsV6,proto3" json:"dnsV6,omitempty"`
	// contains filtered or unexported fields
}

func (*SetCustomDnsRequest) Descriptor deprecated

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

Deprecated: Use SetCustomDnsRequest.ProtoReflect.Descriptor instead.

func (*SetCustomDnsRequest) GetDnsV4

func (x *SetCustomDnsRequest) GetDnsV4() *IpV4Pair

func (*SetCustomDnsRequest) GetDnsV6

func (x *SetCustomDnsRequest) GetDnsV6() *IpV6Pair

func (*SetCustomDnsRequest) GetSubscriber

func (x *SetCustomDnsRequest) GetSubscriber() *v0.PhoneNumber

func (*SetCustomDnsRequest) ProtoMessage

func (*SetCustomDnsRequest) ProtoMessage()

func (*SetCustomDnsRequest) ProtoReflect

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

func (*SetCustomDnsRequest) Reset

func (x *SetCustomDnsRequest) Reset()

func (*SetCustomDnsRequest) String

func (x *SetCustomDnsRequest) String() string

type UnimplementedDataServiceServer

type UnimplementedDataServiceServer struct {
}

UnimplementedDataServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedDataServiceServer) ClearCustomDns

func (UnimplementedDataServiceServer) GetCustomDns

func (UnimplementedDataServiceServer) SetCustomDns

type UnsafeDataServiceServer

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

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

Jump to

Keyboard shortcuts

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