cookie

package
v0.0.0-...-447cc2c Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NKeys = 5
)

Variables

View Source
var (
	ErrInvalidLengthKeys        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowKeys          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupKeys = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Agg

type Agg interface {
	CacheKeys

	Encode(context.Context, string, string) (string, error)
	Decode(context.Context, string, string) (string, error)
}

type CacheKeys

type CacheKeys interface {
	ReadKeys(context.Context, FilterKeys) ([]Keys, error)

	CreateKeys(context.Context, ...Keys) error
	RotateKeys(context.Context, Keys, int64) error
	DeleteKeys(context.Context, FilterKeys) error
}

type ErrMissingSecureKeys

type ErrMissingSecureKeys struct{}

func (ErrMissingSecureKeys) Error

func (err ErrMissingSecureKeys) Error() string

type FilterKeys

type FilterKeys struct {
	All bool
}

type Keys

type Keys struct {
	Hash  []byte `protobuf:"bytes,1,opt,name=Hash,proto3" json:"Hash,omitempty"`
	Block []byte `protobuf:"bytes,2,opt,name=Block,proto3" json:"Block,omitempty"`
}

func NewKeys

func NewKeys() Keys

func NewPopulatedKeys

func NewPopulatedKeys(r randyKeys, easy bool) *Keys

func (*Keys) Descriptor

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

func (*Keys) Equal

func (this *Keys) Equal(that interface{}) bool

func (*Keys) GetBlock

func (m *Keys) GetBlock() []byte

func (*Keys) GetHash

func (m *Keys) GetHash() []byte

func (*Keys) GoString

func (this *Keys) GoString() string

func (*Keys) Marshal

func (m *Keys) Marshal() (dAtA []byte, err error)

func (*Keys) MarshalTo

func (m *Keys) MarshalTo(dAtA []byte) (int, error)

func (*Keys) MarshalToSizedBuffer

func (m *Keys) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Keys) ProtoMessage

func (*Keys) ProtoMessage()

func (*Keys) Reset

func (m *Keys) Reset()

func (*Keys) Size

func (m *Keys) Size() (n int)

func (*Keys) String

func (this *Keys) String() string

func (*Keys) Unmarshal

func (m *Keys) Unmarshal(dAtA []byte) error

func (*Keys) XXX_DiscardUnknown

func (m *Keys) XXX_DiscardUnknown()

func (*Keys) XXX_Marshal

func (m *Keys) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Keys) XXX_Merge

func (m *Keys) XXX_Merge(src proto.Message)

func (*Keys) XXX_Size

func (m *Keys) XXX_Size() int

func (*Keys) XXX_Unmarshal

func (m *Keys) XXX_Unmarshal(b []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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