filecachepb

package
v0.0.0-...-b6e3791 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Overview

Package filecachepb contains the protobuf structures for the profile cache.

Index

Constants

This section is empty.

Variables

View Source
var File_filecache_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AccessSettings

type AccessSettings struct {
	AllowlistCidr        []*CidrRange `protobuf:"bytes,1,rep,name=allowlist_cidr,json=allowlistCidr,proto3" json:"allowlist_cidr,omitempty"`
	BlocklistCidr        []*CidrRange `protobuf:"bytes,2,rep,name=blocklist_cidr,json=blocklistCidr,proto3" json:"blocklist_cidr,omitempty"`
	AllowlistAsn         []uint32     `protobuf:"varint,3,rep,packed,name=allowlist_asn,json=allowlistAsn,proto3" json:"allowlist_asn,omitempty"`
	BlocklistAsn         []uint32     `protobuf:"varint,4,rep,packed,name=blocklist_asn,json=blocklistAsn,proto3" json:"blocklist_asn,omitempty"`
	BlocklistDomainRules []string     `protobuf:"bytes,5,rep,name=blocklist_domain_rules,json=blocklistDomainRules,proto3" json:"blocklist_domain_rules,omitempty"`
	// contains filtered or unexported fields
}

func (*AccessSettings) Descriptor deprecated

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

Deprecated: Use AccessSettings.ProtoReflect.Descriptor instead.

func (*AccessSettings) GetAllowlistAsn

func (x *AccessSettings) GetAllowlistAsn() []uint32

func (*AccessSettings) GetAllowlistCidr

func (x *AccessSettings) GetAllowlistCidr() []*CidrRange

func (*AccessSettings) GetBlocklistAsn

func (x *AccessSettings) GetBlocklistAsn() []uint32

func (*AccessSettings) GetBlocklistCidr

func (x *AccessSettings) GetBlocklistCidr() []*CidrRange

func (*AccessSettings) GetBlocklistDomainRules

func (x *AccessSettings) GetBlocklistDomainRules() []string

func (*AccessSettings) ProtoMessage

func (*AccessSettings) ProtoMessage()

func (*AccessSettings) ProtoReflect

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

func (*AccessSettings) Reset

func (x *AccessSettings) Reset()

func (*AccessSettings) String

func (x *AccessSettings) String() string

type BlockingModeCustomIP

type BlockingModeCustomIP struct {
	Ipv4 []byte `protobuf:"bytes,1,opt,name=ipv4,proto3" json:"ipv4,omitempty"`
	Ipv6 []byte `protobuf:"bytes,2,opt,name=ipv6,proto3" json:"ipv6,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockingModeCustomIP) Descriptor deprecated

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

Deprecated: Use BlockingModeCustomIP.ProtoReflect.Descriptor instead.

func (*BlockingModeCustomIP) GetIpv4

func (x *BlockingModeCustomIP) GetIpv4() []byte

func (*BlockingModeCustomIP) GetIpv6

func (x *BlockingModeCustomIP) GetIpv6() []byte

func (*BlockingModeCustomIP) ProtoMessage

func (*BlockingModeCustomIP) ProtoMessage()

func (*BlockingModeCustomIP) ProtoReflect

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

func (*BlockingModeCustomIP) Reset

func (x *BlockingModeCustomIP) Reset()

func (*BlockingModeCustomIP) String

func (x *BlockingModeCustomIP) String() string

type BlockingModeNXDOMAIN

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

func (*BlockingModeNXDOMAIN) Descriptor deprecated

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

Deprecated: Use BlockingModeNXDOMAIN.ProtoReflect.Descriptor instead.

func (*BlockingModeNXDOMAIN) ProtoMessage

func (*BlockingModeNXDOMAIN) ProtoMessage()

func (*BlockingModeNXDOMAIN) ProtoReflect

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

func (*BlockingModeNXDOMAIN) Reset

func (x *BlockingModeNXDOMAIN) Reset()

func (*BlockingModeNXDOMAIN) String

func (x *BlockingModeNXDOMAIN) String() string

type BlockingModeNullIP

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

func (*BlockingModeNullIP) Descriptor deprecated

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

Deprecated: Use BlockingModeNullIP.ProtoReflect.Descriptor instead.

func (*BlockingModeNullIP) ProtoMessage

func (*BlockingModeNullIP) ProtoMessage()

func (*BlockingModeNullIP) ProtoReflect

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

func (*BlockingModeNullIP) Reset

func (x *BlockingModeNullIP) Reset()

func (*BlockingModeNullIP) String

func (x *BlockingModeNullIP) String() string

type BlockingModeREFUSED

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

func (*BlockingModeREFUSED) Descriptor deprecated

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

Deprecated: Use BlockingModeREFUSED.ProtoReflect.Descriptor instead.

func (*BlockingModeREFUSED) ProtoMessage

func (*BlockingModeREFUSED) ProtoMessage()

func (*BlockingModeREFUSED) ProtoReflect

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

func (*BlockingModeREFUSED) Reset

func (x *BlockingModeREFUSED) Reset()

func (*BlockingModeREFUSED) String

func (x *BlockingModeREFUSED) String() string

type CidrRange

type CidrRange struct {
	Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Prefix  uint32 `protobuf:"varint,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
	// contains filtered or unexported fields
}

func (*CidrRange) Descriptor deprecated

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

Deprecated: Use CidrRange.ProtoReflect.Descriptor instead.

func (*CidrRange) GetAddress

func (x *CidrRange) GetAddress() []byte

func (*CidrRange) GetPrefix

func (x *CidrRange) GetPrefix() uint32

func (*CidrRange) ProtoMessage

func (*CidrRange) ProtoMessage()

func (*CidrRange) ProtoReflect

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

func (*CidrRange) Reset

func (x *CidrRange) Reset()

func (*CidrRange) String

func (x *CidrRange) String() string

type DayRange

type DayRange struct {
	Start uint32 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	End   uint32 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
	// contains filtered or unexported fields
}

func (*DayRange) Descriptor deprecated

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

Deprecated: Use DayRange.ProtoReflect.Descriptor instead.

func (*DayRange) GetEnd

func (x *DayRange) GetEnd() uint32

func (*DayRange) GetStart

func (x *DayRange) GetStart() uint32

func (*DayRange) ProtoMessage

func (*DayRange) ProtoMessage()

func (*DayRange) ProtoReflect

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

func (*DayRange) Reset

func (x *DayRange) Reset()

func (*DayRange) String

func (x *DayRange) String() string

type Device

type Device struct {
	DeviceId         string   `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	LinkedIp         []byte   `protobuf:"bytes,2,opt,name=linked_ip,json=linkedIp,proto3" json:"linked_ip,omitempty"`
	DeviceName       string   `protobuf:"bytes,3,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"`
	DedicatedIps     [][]byte `protobuf:"bytes,4,rep,name=dedicated_ips,json=dedicatedIps,proto3" json:"dedicated_ips,omitempty"`
	FilteringEnabled bool     `protobuf:"varint,5,opt,name=filtering_enabled,json=filteringEnabled,proto3" json:"filtering_enabled,omitempty"`
	// contains filtered or unexported fields
}

func (*Device) Descriptor deprecated

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

Deprecated: Use Device.ProtoReflect.Descriptor instead.

func (*Device) GetDedicatedIps

func (x *Device) GetDedicatedIps() [][]byte

func (*Device) GetDeviceId

func (x *Device) GetDeviceId() string

func (*Device) GetDeviceName

func (x *Device) GetDeviceName() string

func (*Device) GetFilteringEnabled

func (x *Device) GetFilteringEnabled() bool

func (*Device) GetLinkedIp

func (x *Device) GetLinkedIp() []byte

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) ProtoReflect

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

func (*Device) Reset

func (x *Device) Reset()

func (*Device) String

func (x *Device) String() string

type FileCache

type FileCache struct {
	SyncTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=sync_time,json=syncTime,proto3" json:"sync_time,omitempty"`
	Profiles []*Profile             `protobuf:"bytes,2,rep,name=profiles,proto3" json:"profiles,omitempty"`
	Devices  []*Device              `protobuf:"bytes,3,rep,name=devices,proto3" json:"devices,omitempty"`
	Version  int32                  `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*FileCache) Descriptor deprecated

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

Deprecated: Use FileCache.ProtoReflect.Descriptor instead.

func (*FileCache) GetDevices

func (x *FileCache) GetDevices() []*Device

func (*FileCache) GetProfiles

func (x *FileCache) GetProfiles() []*Profile

func (*FileCache) GetSyncTime

func (x *FileCache) GetSyncTime() *timestamppb.Timestamp

func (*FileCache) GetVersion

func (x *FileCache) GetVersion() int32

func (*FileCache) ProtoMessage

func (*FileCache) ProtoMessage()

func (*FileCache) ProtoReflect

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

func (*FileCache) Reset

func (x *FileCache) Reset()

func (*FileCache) String

func (x *FileCache) String() string

type ParentalProtectionSchedule

type ParentalProtectionSchedule struct {
	TimeZone string    `protobuf:"bytes,1,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"`
	Mon      *DayRange `protobuf:"bytes,2,opt,name=mon,proto3" json:"mon,omitempty"`
	Tue      *DayRange `protobuf:"bytes,3,opt,name=tue,proto3" json:"tue,omitempty"`
	Wed      *DayRange `protobuf:"bytes,4,opt,name=wed,proto3" json:"wed,omitempty"`
	Thu      *DayRange `protobuf:"bytes,5,opt,name=thu,proto3" json:"thu,omitempty"`
	Fri      *DayRange `protobuf:"bytes,6,opt,name=fri,proto3" json:"fri,omitempty"`
	Sat      *DayRange `protobuf:"bytes,7,opt,name=sat,proto3" json:"sat,omitempty"`
	Sun      *DayRange `protobuf:"bytes,8,opt,name=sun,proto3" json:"sun,omitempty"`
	// contains filtered or unexported fields
}

func (*ParentalProtectionSchedule) Descriptor deprecated

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

Deprecated: Use ParentalProtectionSchedule.ProtoReflect.Descriptor instead.

func (*ParentalProtectionSchedule) GetFri

func (x *ParentalProtectionSchedule) GetFri() *DayRange

func (*ParentalProtectionSchedule) GetMon

func (x *ParentalProtectionSchedule) GetMon() *DayRange

func (*ParentalProtectionSchedule) GetSat

func (x *ParentalProtectionSchedule) GetSat() *DayRange

func (*ParentalProtectionSchedule) GetSun

func (x *ParentalProtectionSchedule) GetSun() *DayRange

func (*ParentalProtectionSchedule) GetThu

func (x *ParentalProtectionSchedule) GetThu() *DayRange

func (*ParentalProtectionSchedule) GetTimeZone

func (x *ParentalProtectionSchedule) GetTimeZone() string

func (*ParentalProtectionSchedule) GetTue

func (x *ParentalProtectionSchedule) GetTue() *DayRange

func (*ParentalProtectionSchedule) GetWed

func (x *ParentalProtectionSchedule) GetWed() *DayRange

func (*ParentalProtectionSchedule) ProtoMessage

func (*ParentalProtectionSchedule) ProtoMessage()

func (*ParentalProtectionSchedule) ProtoReflect

func (*ParentalProtectionSchedule) Reset

func (x *ParentalProtectionSchedule) Reset()

func (*ParentalProtectionSchedule) String

func (x *ParentalProtectionSchedule) String() string

type ParentalProtectionSettings

type ParentalProtectionSettings struct {
	Schedule          *ParentalProtectionSchedule `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"`
	BlockedServices   []string                    `protobuf:"bytes,2,rep,name=blocked_services,json=blockedServices,proto3" json:"blocked_services,omitempty"`
	Enabled           bool                        `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"`
	BlockAdult        bool                        `protobuf:"varint,4,opt,name=block_adult,json=blockAdult,proto3" json:"block_adult,omitempty"`
	GeneralSafeSearch bool                        `protobuf:"varint,5,opt,name=general_safe_search,json=generalSafeSearch,proto3" json:"general_safe_search,omitempty"`
	YoutubeSafeSearch bool                        `protobuf:"varint,6,opt,name=youtube_safe_search,json=youtubeSafeSearch,proto3" json:"youtube_safe_search,omitempty"`
	// contains filtered or unexported fields
}

func (*ParentalProtectionSettings) Descriptor deprecated

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

Deprecated: Use ParentalProtectionSettings.ProtoReflect.Descriptor instead.

func (*ParentalProtectionSettings) GetBlockAdult

func (x *ParentalProtectionSettings) GetBlockAdult() bool

func (*ParentalProtectionSettings) GetBlockedServices

func (x *ParentalProtectionSettings) GetBlockedServices() []string

func (*ParentalProtectionSettings) GetEnabled

func (x *ParentalProtectionSettings) GetEnabled() bool

func (*ParentalProtectionSettings) GetGeneralSafeSearch

func (x *ParentalProtectionSettings) GetGeneralSafeSearch() bool

func (*ParentalProtectionSettings) GetSchedule

func (*ParentalProtectionSettings) GetYoutubeSafeSearch

func (x *ParentalProtectionSettings) GetYoutubeSafeSearch() bool

func (*ParentalProtectionSettings) ProtoMessage

func (*ParentalProtectionSettings) ProtoMessage()

func (*ParentalProtectionSettings) ProtoReflect

func (*ParentalProtectionSettings) Reset

func (x *ParentalProtectionSettings) Reset()

func (*ParentalProtectionSettings) String

func (x *ParentalProtectionSettings) String() string

type Profile

type Profile struct {
	Parental *ParentalProtectionSettings `protobuf:"bytes,1,opt,name=parental,proto3" json:"parental,omitempty"`
	// Types that are assignable to BlockingMode:
	//
	//	*Profile_BlockingModeCustomIp
	//	*Profile_BlockingModeNxdomain
	//	*Profile_BlockingModeNullIp
	//	*Profile_BlockingModeRefused
	BlockingMode        isProfile_BlockingMode `protobuf_oneof:"blocking_mode"`
	ProfileId           string                 `protobuf:"bytes,6,opt,name=profile_id,json=profileId,proto3" json:"profile_id,omitempty"`
	UpdateTime          *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	DeviceIds           []string               `protobuf:"bytes,8,rep,name=device_ids,json=deviceIds,proto3" json:"device_ids,omitempty"`
	RuleListIds         []string               `protobuf:"bytes,9,rep,name=rule_list_ids,json=ruleListIds,proto3" json:"rule_list_ids,omitempty"`
	CustomRules         []string               `protobuf:"bytes,10,rep,name=custom_rules,json=customRules,proto3" json:"custom_rules,omitempty"`
	FilteredResponseTtl *durationpb.Duration   `protobuf:"bytes,11,opt,name=filtered_response_ttl,json=filteredResponseTtl,proto3" json:"filtered_response_ttl,omitempty"`
	FilteringEnabled    bool                   `protobuf:"varint,12,opt,name=filtering_enabled,json=filteringEnabled,proto3" json:"filtering_enabled,omitempty"`
	// Deprecated: Marked as deprecated in filecache.proto.
	SafeBrowsingEnabled bool                  `protobuf:"varint,13,opt,name=safe_browsing_enabled,json=safeBrowsingEnabled,proto3" json:"safe_browsing_enabled,omitempty"`
	RuleListsEnabled    bool                  `protobuf:"varint,14,opt,name=rule_lists_enabled,json=ruleListsEnabled,proto3" json:"rule_lists_enabled,omitempty"`
	QueryLogEnabled     bool                  `protobuf:"varint,15,opt,name=query_log_enabled,json=queryLogEnabled,proto3" json:"query_log_enabled,omitempty"`
	Deleted             bool                  `protobuf:"varint,16,opt,name=deleted,proto3" json:"deleted,omitempty"`
	BlockPrivateRelay   bool                  `protobuf:"varint,17,opt,name=block_private_relay,json=blockPrivateRelay,proto3" json:"block_private_relay,omitempty"`
	BlockFirefoxCanary  bool                  `protobuf:"varint,18,opt,name=block_firefox_canary,json=blockFirefoxCanary,proto3" json:"block_firefox_canary,omitempty"`
	SafeBrowsing        *SafeBrowsingSettings `protobuf:"bytes,19,opt,name=safe_browsing,json=safeBrowsing,proto3" json:"safe_browsing,omitempty"`
	IpLogEnabled        bool                  `protobuf:"varint,20,opt,name=ip_log_enabled,json=ipLogEnabled,proto3" json:"ip_log_enabled,omitempty"`
	Access              *AccessSettings       `protobuf:"bytes,21,opt,name=access,proto3" json:"access,omitempty"`
	// contains filtered or unexported fields
}

func (*Profile) Descriptor deprecated

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

Deprecated: Use Profile.ProtoReflect.Descriptor instead.

func (*Profile) GetAccess

func (x *Profile) GetAccess() *AccessSettings

func (*Profile) GetBlockFirefoxCanary

func (x *Profile) GetBlockFirefoxCanary() bool

func (*Profile) GetBlockPrivateRelay

func (x *Profile) GetBlockPrivateRelay() bool

func (*Profile) GetBlockingMode

func (m *Profile) GetBlockingMode() isProfile_BlockingMode

func (*Profile) GetBlockingModeCustomIp

func (x *Profile) GetBlockingModeCustomIp() *BlockingModeCustomIP

func (*Profile) GetBlockingModeNullIp

func (x *Profile) GetBlockingModeNullIp() *BlockingModeNullIP

func (*Profile) GetBlockingModeNxdomain

func (x *Profile) GetBlockingModeNxdomain() *BlockingModeNXDOMAIN

func (*Profile) GetBlockingModeRefused

func (x *Profile) GetBlockingModeRefused() *BlockingModeREFUSED

func (*Profile) GetCustomRules

func (x *Profile) GetCustomRules() []string

func (*Profile) GetDeleted

func (x *Profile) GetDeleted() bool

func (*Profile) GetDeviceIds

func (x *Profile) GetDeviceIds() []string

func (*Profile) GetFilteredResponseTtl

func (x *Profile) GetFilteredResponseTtl() *durationpb.Duration

func (*Profile) GetFilteringEnabled

func (x *Profile) GetFilteringEnabled() bool

func (*Profile) GetIpLogEnabled

func (x *Profile) GetIpLogEnabled() bool

func (*Profile) GetParental

func (x *Profile) GetParental() *ParentalProtectionSettings

func (*Profile) GetProfileId

func (x *Profile) GetProfileId() string

func (*Profile) GetQueryLogEnabled

func (x *Profile) GetQueryLogEnabled() bool

func (*Profile) GetRuleListIds

func (x *Profile) GetRuleListIds() []string

func (*Profile) GetRuleListsEnabled

func (x *Profile) GetRuleListsEnabled() bool

func (*Profile) GetSafeBrowsing

func (x *Profile) GetSafeBrowsing() *SafeBrowsingSettings

func (*Profile) GetSafeBrowsingEnabled deprecated

func (x *Profile) GetSafeBrowsingEnabled() bool

Deprecated: Marked as deprecated in filecache.proto.

func (*Profile) GetUpdateTime

func (x *Profile) GetUpdateTime() *timestamppb.Timestamp

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) ProtoReflect

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

func (*Profile) Reset

func (x *Profile) Reset()

func (*Profile) String

func (x *Profile) String() string

type Profile_BlockingModeCustomIp

type Profile_BlockingModeCustomIp struct {
	BlockingModeCustomIp *BlockingModeCustomIP `protobuf:"bytes,2,opt,name=blocking_mode_custom_ip,json=blockingModeCustomIp,proto3,oneof"`
}

type Profile_BlockingModeNullIp

type Profile_BlockingModeNullIp struct {
	BlockingModeNullIp *BlockingModeNullIP `protobuf:"bytes,4,opt,name=blocking_mode_null_ip,json=blockingModeNullIp,proto3,oneof"`
}

type Profile_BlockingModeNxdomain

type Profile_BlockingModeNxdomain struct {
	BlockingModeNxdomain *BlockingModeNXDOMAIN `protobuf:"bytes,3,opt,name=blocking_mode_nxdomain,json=blockingModeNxdomain,proto3,oneof"`
}

type Profile_BlockingModeRefused

type Profile_BlockingModeRefused struct {
	BlockingModeRefused *BlockingModeREFUSED `protobuf:"bytes,5,opt,name=blocking_mode_refused,json=blockingModeRefused,proto3,oneof"`
}

type SafeBrowsingSettings

type SafeBrowsingSettings struct {
	Enabled                     bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	BlockDangerousDomains       bool `` /* 127-byte string literal not displayed */
	BlockNewlyRegisteredDomains bool `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*SafeBrowsingSettings) Descriptor deprecated

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

Deprecated: Use SafeBrowsingSettings.ProtoReflect.Descriptor instead.

func (*SafeBrowsingSettings) GetBlockDangerousDomains

func (x *SafeBrowsingSettings) GetBlockDangerousDomains() bool

func (*SafeBrowsingSettings) GetBlockNewlyRegisteredDomains

func (x *SafeBrowsingSettings) GetBlockNewlyRegisteredDomains() bool

func (*SafeBrowsingSettings) GetEnabled

func (x *SafeBrowsingSettings) GetEnabled() bool

func (*SafeBrowsingSettings) ProtoMessage

func (*SafeBrowsingSettings) ProtoMessage()

func (*SafeBrowsingSettings) ProtoReflect

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

func (*SafeBrowsingSettings) Reset

func (x *SafeBrowsingSettings) Reset()

func (*SafeBrowsingSettings) String

func (x *SafeBrowsingSettings) String() string

type Storage

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

Storage is the file-cache storage that encodes data using protobuf.

func New

func New(cachePath string) (s *Storage)

New returns a new protobuf-encoded file-cache storage.

func (*Storage) Load

func (s *Storage) Load() (c *internal.FileCache, err error)

Load implements the internal.FileCacheStorage interface for *Storage.

func (*Storage) Store

func (s *Storage) Store(c *internal.FileCache) (err error)

Store implements the internal.FileCacheStorage interface for *Storage.

Jump to

Keyboard shortcuts

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