v0

package
v1.10.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	NumberLookupService_NumberLookup_FullMethodName = "/wgtwo.lookup.v0.NumberLookupService/NumberLookup"
)

Variables

View Source
var File_wgtwo_lookup_v0_number_lookup_proto protoreflect.FileDescriptor
View Source
var NumberLookupService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "wgtwo.lookup.v0.NumberLookupService",
	HandlerType: (*NumberLookupServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "NumberLookup",
			Handler:       _NumberLookupService_NumberLookup_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "wgtwo/lookup/v0/number_lookup.proto",
}

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

Functions

func RegisterNumberLookupServiceServer

func RegisterNumberLookupServiceServer(s grpc.ServiceRegistrar, srv NumberLookupServiceServer)

Types

type CacheControl added in v0.1.7

type CacheControl struct {

	// The maximum duration for which this response can be cached.
	//
	// If unset or set to zero, default duration of 24 hours will be used.
	// If set to value lower than the minimum duration of 15 minutes, the minimum duration will be used.
	//
	// Note: The minimum and default values might be subject to change without notice.
	MaxAge *durationpb.Duration `protobuf:"bytes,1,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"`
	// contains filtered or unexported fields
}

func (*CacheControl) Descriptor deprecated added in v0.1.7

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

Deprecated: Use CacheControl.ProtoReflect.Descriptor instead.

func (*CacheControl) GetMaxAge added in v0.1.7

func (x *CacheControl) GetMaxAge() *durationpb.Duration

func (*CacheControl) ProtoMessage added in v0.1.7

func (*CacheControl) ProtoMessage()

func (*CacheControl) ProtoReflect added in v0.1.7

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

func (*CacheControl) Reset added in v0.1.7

func (x *CacheControl) Reset()

func (*CacheControl) String added in v0.1.7

func (x *CacheControl) String() string

type Error added in v0.1.5

type Error struct {

	// Human readable description describing the error
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*Error) Descriptor deprecated added in v0.1.5

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetMessage added in v0.1.5

func (x *Error) GetMessage() string

func (*Error) ProtoMessage added in v0.1.5

func (*Error) ProtoMessage()

func (*Error) ProtoReflect added in v0.1.5

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

func (*Error) Reset added in v0.1.5

func (x *Error) Reset()

func (*Error) String added in v0.1.5

func (x *Error) String() string

type NumberLookupRequest

type NumberLookupRequest struct {

	// An ID representing the request, used for routing purposes
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The number to lookup
	Number *v0.PhoneNumber `protobuf:"bytes,2,opt,name=number,proto3" json:"number,omitempty"`
	// contains filtered or unexported fields
}

func (*NumberLookupRequest) Descriptor deprecated

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

Deprecated: Use NumberLookupRequest.ProtoReflect.Descriptor instead.

func (*NumberLookupRequest) GetId

func (x *NumberLookupRequest) GetId() string

func (*NumberLookupRequest) GetNumber

func (x *NumberLookupRequest) GetNumber() *v0.PhoneNumber

func (*NumberLookupRequest) ProtoMessage

func (*NumberLookupRequest) ProtoMessage()

func (*NumberLookupRequest) ProtoReflect

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

func (*NumberLookupRequest) Reset

func (x *NumberLookupRequest) Reset()

func (*NumberLookupRequest) String

func (x *NumberLookupRequest) String() string

type NumberLookupResponse

type NumberLookupResponse struct {

	// The origin request this response is for
	NumberLookupRequest *NumberLookupRequest `protobuf:"bytes,1,opt,name=number_lookup_request,json=numberLookupRequest,proto3" json:"number_lookup_request,omitempty"`
	// The result of the lookup
	// If neither Result nor Error is set, an empty Result is assumed
	//
	// Types that are assignable to Reply:
	//
	//	*NumberLookupResponse_Result
	//	*NumberLookupResponse_Error
	Reply isNumberLookupResponse_Reply `protobuf_oneof:"reply"`
	// Cache settings for this response
	CacheControl *CacheControl `protobuf:"bytes,4,opt,name=cache_control,json=cacheControl,proto3" json:"cache_control,omitempty"`
	// contains filtered or unexported fields
}

func (*NumberLookupResponse) Descriptor deprecated

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

Deprecated: Use NumberLookupResponse.ProtoReflect.Descriptor instead.

func (*NumberLookupResponse) GetCacheControl added in v0.1.7

func (x *NumberLookupResponse) GetCacheControl() *CacheControl

func (*NumberLookupResponse) GetError added in v0.1.5

func (x *NumberLookupResponse) GetError() *Error

func (*NumberLookupResponse) GetNumberLookupRequest

func (x *NumberLookupResponse) GetNumberLookupRequest() *NumberLookupRequest

func (*NumberLookupResponse) GetReply added in v0.1.5

func (m *NumberLookupResponse) GetReply() isNumberLookupResponse_Reply

func (*NumberLookupResponse) GetResult added in v0.1.5

func (x *NumberLookupResponse) GetResult() *Result

func (*NumberLookupResponse) ProtoMessage

func (*NumberLookupResponse) ProtoMessage()

func (*NumberLookupResponse) ProtoReflect

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

func (*NumberLookupResponse) Reset

func (x *NumberLookupResponse) Reset()

func (*NumberLookupResponse) String

func (x *NumberLookupResponse) String() string

type NumberLookupResponse_Error added in v0.1.5

type NumberLookupResponse_Error struct {
	Error *Error `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}

type NumberLookupResponse_Result added in v0.1.5

type NumberLookupResponse_Result struct {
	Result *Result `protobuf:"bytes,2,opt,name=result,proto3,oneof"`
}

type NumberLookupServiceClient

type NumberLookupServiceClient interface {
	NumberLookup(ctx context.Context, opts ...grpc.CallOption) (NumberLookupService_NumberLookupClient, error)
}

NumberLookupServiceClient is the client API for NumberLookupService 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 NumberLookupServiceServer

type NumberLookupServiceServer interface {
	NumberLookup(NumberLookupService_NumberLookupServer) error
}

NumberLookupServiceServer is the server API for NumberLookupService service. All implementations should embed UnimplementedNumberLookupServiceServer for forward compatibility

type NumberLookupService_NumberLookupClient

type NumberLookupService_NumberLookupClient interface {
	Send(*NumberLookupResponse) error
	Recv() (*NumberLookupRequest, error)
	grpc.ClientStream
}

type NumberLookupService_NumberLookupServer

type NumberLookupService_NumberLookupServer interface {
	Send(*NumberLookupRequest) error
	Recv() (*NumberLookupResponse, error)
	grpc.ServerStream
}

type Result added in v0.1.5

type Result struct {

	// The name associated with the number
	// May be empty if no name is found
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Result) Descriptor deprecated added in v0.1.5

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

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetName added in v0.1.5

func (x *Result) GetName() string

func (*Result) ProtoMessage added in v0.1.5

func (*Result) ProtoMessage()

func (*Result) ProtoReflect added in v0.1.5

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

func (*Result) Reset added in v0.1.5

func (x *Result) Reset()

func (*Result) String added in v0.1.5

func (x *Result) String() string

type UnimplementedNumberLookupServiceServer

type UnimplementedNumberLookupServiceServer struct {
}

UnimplementedNumberLookupServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedNumberLookupServiceServer) NumberLookup

type UnsafeNumberLookupServiceServer

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

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

Jump to

Keyboard shortcuts

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