Versions in this module Expand all Collapse all v0 v0.1.0 Nov 15, 2026 Changes in this version + const Detector_Detect_FullMethodName + var ConnType_name = map[int32]string + var ConnType_value = map[string]int32 + var Detector_ServiceDesc = grpc.ServiceDesc + var DeviceType_name = map[int32]string + var DeviceType_value = map[string]int32 + var File_protocol_protocol_proto protoreflect.FileDescriptor + var SwaggerDefenition string + func RegisterDetectorHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterDetectorHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DetectorClient) error + func RegisterDetectorHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterDetectorHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DetectorServer) error + func RegisterDetectorServer(s grpc.ServiceRegistrar, srv DetectorServer) + type Browser struct + Id uint64 + IsRobot int32 + Name string + Version string + func (*Browser) Descriptor() ([]byte, []int) + func (*Browser) ProtoMessage() + func (x *Browser) GetId() uint64 + func (x *Browser) GetIsRobot() int32 + func (x *Browser) GetName() string + func (x *Browser) GetVersion() string + func (x *Browser) ProtoReflect() protoreflect.Message + func (x *Browser) Reset() + func (x *Browser) String() string + type Carrier struct + Code string + Id uint64 + Name string + func (*Carrier) Descriptor() ([]byte, []int) + func (*Carrier) ProtoMessage() + func (x *Carrier) GetCode() string + func (x *Carrier) GetId() uint64 + func (x *Carrier) GetName() string + func (x *Carrier) ProtoReflect() protoreflect.Message + func (x *Carrier) Reset() + func (x *Carrier) String() string + type ConnType int32 + const ConnType_Cell + const ConnType_Cell2G + const ConnType_Cell3G + const ConnType_Cell4G + const ConnType_Cell5G + const ConnType_Ethernet + const ConnType_Unknown + const ConnType_WIFI + func (ConnType) Descriptor() protoreflect.EnumDescriptor + func (ConnType) EnumDescriptor() ([]byte, []int) + func (ConnType) Type() protoreflect.EnumType + func (x ConnType) Enum() *ConnType + func (x ConnType) Number() protoreflect.EnumNumber + func (x ConnType) String() string + type DetectorClient interface + Detect func(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) + func NewDetectorClient(cc grpc.ClientConnInterface) DetectorClient + type DetectorServer interface + Detect func(context.Context, *Request) (*Response, error) + type Device struct + Browser *Browser + Connectiontype ConnType + Devicetype DeviceType + Height int32 + Hwver string + Id uint64 + Make string + Model string + Os *OS + Ppi int32 + PxRatio float32 + Width int32 + func (*Device) Descriptor() ([]byte, []int) + func (*Device) ProtoMessage() + func (x *Device) GetBrowser() *Browser + func (x *Device) GetConnectiontype() ConnType + func (x *Device) GetDevicetype() DeviceType + func (x *Device) GetHeight() int32 + func (x *Device) GetHwver() string + func (x *Device) GetId() uint64 + func (x *Device) GetMake() string + func (x *Device) GetModel() string + func (x *Device) GetOs() *OS + func (x *Device) GetPpi() int32 + func (x *Device) GetPxRatio() float32 + func (x *Device) GetWidth() int32 + func (x *Device) ProtoReflect() protoreflect.Message + func (x *Device) Reset() + func (x *Device) String() string + type DeviceType int32 + const DeviceType_Connected + const DeviceType_Glasses + const DeviceType_Mobile + const DeviceType_PC + const DeviceType_Phone + const DeviceType_SetTopBox + const DeviceType_TV + const DeviceType_Tablet + const DeviceType_Undefined + const DeviceType_Watch + func (DeviceType) Descriptor() protoreflect.EnumDescriptor + func (DeviceType) EnumDescriptor() ([]byte, []int) + func (DeviceType) Type() protoreflect.EnumType + func (x DeviceType) Enum() *DeviceType + func (x DeviceType) Number() protoreflect.EnumNumber + func (x DeviceType) String() string + type GeoLocation struct + Carrier *Carrier + City string + Country string + Ip string + Lat float32 + Lon float32 + Metro string + Region string + RegionFIPS104 string + UtcOffset int32 + Zip string + func (*GeoLocation) Descriptor() ([]byte, []int) + func (*GeoLocation) ProtoMessage() + func (x *GeoLocation) GetCarrier() *Carrier + func (x *GeoLocation) GetCity() string + func (x *GeoLocation) GetCountry() string + func (x *GeoLocation) GetIp() string + func (x *GeoLocation) GetLat() float32 + func (x *GeoLocation) GetLon() float32 + func (x *GeoLocation) GetMetro() string + func (x *GeoLocation) GetRegion() string + func (x *GeoLocation) GetRegionFIPS104() string + func (x *GeoLocation) GetUtcOffset() int32 + func (x *GeoLocation) GetZip() string + func (x *GeoLocation) ProtoReflect() protoreflect.Message + func (x *GeoLocation) Reset() + func (x *GeoLocation) String() string + type OS struct + Id uint64 + Name string + Version string + func (*OS) Descriptor() ([]byte, []int) + func (*OS) ProtoMessage() + func (x *OS) GetId() uint64 + func (x *OS) GetName() string + func (x *OS) GetVersion() string + func (x *OS) ProtoReflect() protoreflect.Message + func (x *OS) Reset() + func (x *OS) String() string + type Request struct + Adblock bool + DNT bool + FlashVer string + Height int32 + Ip string + Js bool + LMT bool + Languages []string + PrimaryLanguage string + PrivateBrowsing bool + Ref string + Sessid *UUID + Ua string + Udid string + Uid *UUID + Url string + Width int32 + func (*Request) Descriptor() ([]byte, []int) + func (*Request) ProtoMessage() + func (x *Request) GetAdblock() bool + func (x *Request) GetDNT() bool + func (x *Request) GetFlashVer() string + func (x *Request) GetHeight() int32 + func (x *Request) GetIp() string + func (x *Request) GetJs() bool + func (x *Request) GetLMT() bool + func (x *Request) GetLanguages() []string + func (x *Request) GetPrimaryLanguage() string + func (x *Request) GetPrivateBrowsing() bool + func (x *Request) GetRef() string + func (x *Request) GetSessid() *UUID + func (x *Request) GetUa() string + func (x *Request) GetUdid() string + func (x *Request) GetUid() *UUID + func (x *Request) GetUrl() string + func (x *Request) GetWidth() int32 + func (x *Request) ProtoReflect() protoreflect.Message + func (x *Request) Reset() + func (x *Request) String() string + type Response struct + Device *Device + Geo *GeoLocation + User *User + func (*Response) Descriptor() ([]byte, []int) + func (*Response) ProtoMessage() + func (x *Response) GetDevice() *Device + func (x *Response) GetGeo() *GeoLocation + func (x *Response) GetUser() *User + func (x *Response) ProtoReflect() protoreflect.Message + func (x *Response) Reset() + func (x *Response) String() string + type UUID struct + Value []byte + func UUIDFrom(uuid uuid.UUID) (*UUID, error) + func UUIDFromString(suuid string) (*UUID, error) + func (*UUID) Descriptor() ([]byte, []int) + func (*UUID) ProtoMessage() + func (ud *UUID) MarshalBinary() ([]byte, error) + func (ud *UUID) MarshalJSON() ([]byte, error) + func (ud *UUID) MarshalText() ([]byte, error) + func (ud *UUID) UUIDObject() (uuid.UUID, error) + func (ud *UUID) UnmarshalBinary(data []byte) error + func (ud *UUID) UnmarshalJSON(data []byte) error + func (ud *UUID) UnmarshalText(data []byte) error + func (x *UUID) GetValue() []byte + func (x *UUID) ProtoReflect() protoreflect.Message + func (x *UUID) Reset() + func (x *UUID) String() string + type UnimplementedDetectorServer struct + func (UnimplementedDetectorServer) Detect(context.Context, *Request) (*Response, error) + type UnsafeDetectorServer interface + type User struct + AgeEnd int32 + AgeStart int32 + Fingerprint string + Keywords []string + Sessid *UUID + Uuid *UUID + func (*User) Descriptor() ([]byte, []int) + func (*User) ProtoMessage() + func (x *User) GetAgeEnd() int32 + func (x *User) GetAgeStart() int32 + func (x *User) GetFingerprint() string + func (x *User) GetKeywords() []string + func (x *User) GetSessid() *UUID + func (x *User) GetUuid() *UUID + func (x *User) ProtoReflect() protoreflect.Message + func (x *User) Reset() + func (x *User) String() string