common

package
v1.36.11-2023053111370... Latest Latest
Warning

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

Go to latest
Published: unknown License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const HashingConfig_Bcrypt_case case_HashingConfig_Method = 1
View Source
const HashingConfig_Method_not_set_case case_HashingConfig_Method = 0
View Source
const HashingConfig_Scrypt_case case_HashingConfig_Method = 2
View Source
const HashingInstance_Bcrypt_case case_HashingInstance_Instance = 3
View Source
const HashingInstance_Instance_not_set_case case_HashingInstance_Instance = 0
View Source
const HashingInstance_Scrypt_case case_HashingInstance_Instance = 4

Variables

View Source
var (
	AvatarColor_name = map[int32]string{
		0: "AVATAR_COLOR_UNSPECIFIED",
		1: "AVATAR_COLOR_BLUE",
		2: "AVATAR_COLOR_GREEN",
		3: "AVATAR_COLOR_RED",
		4: "AVATAR_COLOR_ORANGE",
	}
	AvatarColor_value = map[string]int32{
		"AVATAR_COLOR_UNSPECIFIED": 0,
		"AVATAR_COLOR_BLUE":        1,
		"AVATAR_COLOR_GREEN":       2,
		"AVATAR_COLOR_RED":         3,
		"AVATAR_COLOR_ORANGE":      4,
	}
)

Enum value maps for AvatarColor.

View Source
var File_nuntio_management_model_common_common_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AvatarColor

type AvatarColor int32
const (
	AvatarColor_AVATAR_COLOR_UNSPECIFIED AvatarColor = 0
	AvatarColor_AVATAR_COLOR_BLUE        AvatarColor = 1
	AvatarColor_AVATAR_COLOR_GREEN       AvatarColor = 2
	AvatarColor_AVATAR_COLOR_RED         AvatarColor = 3
	AvatarColor_AVATAR_COLOR_ORANGE      AvatarColor = 4
)

func (AvatarColor) Descriptor

func (AvatarColor) Enum

func (x AvatarColor) Enum() *AvatarColor

func (AvatarColor) Number

func (x AvatarColor) Number() protoreflect.EnumNumber

func (AvatarColor) String

func (x AvatarColor) String() string

func (AvatarColor) Type

type BcryptHashingConfig

type BcryptHashingConfig struct {
	Cost int32 `protobuf:"varint,1,opt,name=cost,proto3" json:"cost,omitempty"`
	// contains filtered or unexported fields
}

func (*BcryptHashingConfig) GetCost

func (x *BcryptHashingConfig) GetCost() int32

func (*BcryptHashingConfig) ProtoMessage

func (*BcryptHashingConfig) ProtoMessage()

func (*BcryptHashingConfig) ProtoReflect

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

func (*BcryptHashingConfig) Reset

func (x *BcryptHashingConfig) Reset()

func (*BcryptHashingConfig) SetCost

func (x *BcryptHashingConfig) SetCost(v int32)

func (*BcryptHashingConfig) String

func (x *BcryptHashingConfig) String() string

type BcryptHashingConfig_builder

type BcryptHashingConfig_builder struct {
	Cost int32
	// contains filtered or unexported fields
}

func (BcryptHashingConfig_builder) Build

type BcryptHashingInstance

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

func (*BcryptHashingInstance) ProtoMessage

func (*BcryptHashingInstance) ProtoMessage()

func (*BcryptHashingInstance) ProtoReflect

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

func (*BcryptHashingInstance) Reset

func (x *BcryptHashingInstance) Reset()

func (*BcryptHashingInstance) String

func (x *BcryptHashingInstance) String() string

type BcryptHashingInstance_builder

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

func (BcryptHashingInstance_builder) Build

type HashingConfig

type HashingConfig struct {

	// Types that are valid to be assigned to Method:
	//
	//	*HashingConfig_Bcrypt
	//	*HashingConfig_Scrypt
	Method isHashingConfig_Method `protobuf_oneof:"method"`
	// contains filtered or unexported fields
}

func (*HashingConfig) ClearBcrypt

func (x *HashingConfig) ClearBcrypt()

func (*HashingConfig) ClearMethod

func (x *HashingConfig) ClearMethod()

func (*HashingConfig) ClearScrypt

func (x *HashingConfig) ClearScrypt()

func (*HashingConfig) GetBcrypt

func (x *HashingConfig) GetBcrypt() *BcryptHashingConfig

func (*HashingConfig) GetMethod

func (x *HashingConfig) GetMethod() isHashingConfig_Method

func (*HashingConfig) GetScrypt

func (x *HashingConfig) GetScrypt() *ScryptHashingConfig

func (*HashingConfig) HasBcrypt

func (x *HashingConfig) HasBcrypt() bool

func (*HashingConfig) HasMethod

func (x *HashingConfig) HasMethod() bool

func (*HashingConfig) HasScrypt

func (x *HashingConfig) HasScrypt() bool

func (*HashingConfig) ProtoMessage

func (*HashingConfig) ProtoMessage()

func (*HashingConfig) ProtoReflect

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

func (*HashingConfig) Reset

func (x *HashingConfig) Reset()

func (*HashingConfig) SetBcrypt

func (x *HashingConfig) SetBcrypt(v *BcryptHashingConfig)

func (*HashingConfig) SetScrypt

func (x *HashingConfig) SetScrypt(v *ScryptHashingConfig)

func (*HashingConfig) String

func (x *HashingConfig) String() string

func (*HashingConfig) WhichMethod

func (x *HashingConfig) WhichMethod() case_HashingConfig_Method

type HashingConfig_Bcrypt

type HashingConfig_Bcrypt struct {
	Bcrypt *BcryptHashingConfig `protobuf:"bytes,1,opt,name=bcrypt,proto3,oneof"`
}

type HashingConfig_Scrypt

type HashingConfig_Scrypt struct {
	Scrypt *ScryptHashingConfig `protobuf:"bytes,2,opt,name=scrypt,proto3,oneof"`
}

type HashingConfig_builder

type HashingConfig_builder struct {

	// Fields of oneof Method:
	Bcrypt *BcryptHashingConfig
	Scrypt *ScryptHashingConfig
	// contains filtered or unexported fields
}

func (HashingConfig_builder) Build

type HashingInstance

type HashingInstance struct {
	Config *HashingConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	Hash   []byte         `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	// Types that are valid to be assigned to Instance:
	//
	//	*HashingInstance_Bcrypt
	//	*HashingInstance_Scrypt
	Instance isHashingInstance_Instance `protobuf_oneof:"instance"`
	// contains filtered or unexported fields
}

func (*HashingInstance) ClearBcrypt

func (x *HashingInstance) ClearBcrypt()

func (*HashingInstance) ClearConfig

func (x *HashingInstance) ClearConfig()

func (*HashingInstance) ClearInstance

func (x *HashingInstance) ClearInstance()

func (*HashingInstance) ClearScrypt

func (x *HashingInstance) ClearScrypt()

func (*HashingInstance) GetBcrypt

func (x *HashingInstance) GetBcrypt() *BcryptHashingInstance

func (*HashingInstance) GetConfig

func (x *HashingInstance) GetConfig() *HashingConfig

func (*HashingInstance) GetHash

func (x *HashingInstance) GetHash() []byte

func (*HashingInstance) GetInstance

func (x *HashingInstance) GetInstance() isHashingInstance_Instance

func (*HashingInstance) GetScrypt

func (x *HashingInstance) GetScrypt() *ScryptHashingInstance

func (*HashingInstance) HasBcrypt

func (x *HashingInstance) HasBcrypt() bool

func (*HashingInstance) HasConfig

func (x *HashingInstance) HasConfig() bool

func (*HashingInstance) HasInstance

func (x *HashingInstance) HasInstance() bool

func (*HashingInstance) HasScrypt

func (x *HashingInstance) HasScrypt() bool

func (*HashingInstance) ProtoMessage

func (*HashingInstance) ProtoMessage()

func (*HashingInstance) ProtoReflect

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

func (*HashingInstance) Reset

func (x *HashingInstance) Reset()

func (*HashingInstance) SetBcrypt

func (x *HashingInstance) SetBcrypt(v *BcryptHashingInstance)

func (*HashingInstance) SetConfig

func (x *HashingInstance) SetConfig(v *HashingConfig)

func (*HashingInstance) SetHash

func (x *HashingInstance) SetHash(v []byte)

func (*HashingInstance) SetScrypt

func (x *HashingInstance) SetScrypt(v *ScryptHashingInstance)

func (*HashingInstance) String

func (x *HashingInstance) String() string

func (*HashingInstance) WhichInstance

func (x *HashingInstance) WhichInstance() case_HashingInstance_Instance

type HashingInstance_Bcrypt

type HashingInstance_Bcrypt struct {
	Bcrypt *BcryptHashingInstance `protobuf:"bytes,3,opt,name=bcrypt,proto3,oneof"`
}

type HashingInstance_Scrypt

type HashingInstance_Scrypt struct {
	Scrypt *ScryptHashingInstance `protobuf:"bytes,4,opt,name=scrypt,proto3,oneof"`
}

type HashingInstance_builder

type HashingInstance_builder struct {
	Config *HashingConfig
	Hash   []byte
	// Fields of oneof Instance:
	Bcrypt *BcryptHashingInstance
	Scrypt *ScryptHashingInstance
	// contains filtered or unexported fields
}

func (HashingInstance_builder) Build

type Image

type Image struct {
	Url       string                 `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	Expires   bool                   `protobuf:"varint,3,opt,name=expires,proto3" json:"expires,omitempty"`
	Key       string                 `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*Image) ClearExpiresAt

func (x *Image) ClearExpiresAt()

func (*Image) GetExpires

func (x *Image) GetExpires() bool

func (*Image) GetExpiresAt

func (x *Image) GetExpiresAt() *timestamppb.Timestamp

func (*Image) GetKey

func (x *Image) GetKey() string

func (*Image) GetUrl

func (x *Image) GetUrl() string

func (*Image) HasExpiresAt

func (x *Image) HasExpiresAt() bool

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) ProtoReflect

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

func (*Image) Reset

func (x *Image) Reset()

func (*Image) SetExpires

func (x *Image) SetExpires(v bool)

func (*Image) SetExpiresAt

func (x *Image) SetExpiresAt(v *timestamppb.Timestamp)

func (*Image) SetKey

func (x *Image) SetKey(v string)

func (*Image) SetUrl

func (x *Image) SetUrl(v string)

func (*Image) String

func (x *Image) String() string

type Image_builder

type Image_builder struct {
	Url       string
	ExpiresAt *timestamppb.Timestamp
	Expires   bool
	Key       string
	// contains filtered or unexported fields
}

func (Image_builder) Build

func (b0 Image_builder) Build() *Image

type Metadata

type Metadata struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Metadata) GetKey

func (x *Metadata) GetKey() string

func (*Metadata) GetValue

func (x *Metadata) GetValue() []byte

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

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

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) SetKey

func (x *Metadata) SetKey(v string)

func (*Metadata) SetValue

func (x *Metadata) SetValue(v []byte)

func (*Metadata) String

func (x *Metadata) String() string

type Metadata_builder

type Metadata_builder struct {
	Key   string
	Value []byte
	// contains filtered or unexported fields
}

func (Metadata_builder) Build

func (b0 Metadata_builder) Build() *Metadata

type Pagination

type Pagination struct {
	Offset     uint32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
	Limit      uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	Descending bool   `protobuf:"varint,3,opt,name=descending,proto3" json:"descending,omitempty"`
	// contains filtered or unexported fields
}

func (*Pagination) GetDescending

func (x *Pagination) GetDescending() bool

func (*Pagination) GetLimit

func (x *Pagination) GetLimit() uint32

func (*Pagination) GetOffset

func (x *Pagination) GetOffset() uint32

func (*Pagination) ProtoMessage

func (*Pagination) ProtoMessage()

func (*Pagination) ProtoReflect

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

func (*Pagination) Reset

func (x *Pagination) Reset()

func (*Pagination) SetDescending

func (x *Pagination) SetDescending(v bool)

func (*Pagination) SetLimit

func (x *Pagination) SetLimit(v uint32)

func (*Pagination) SetOffset

func (x *Pagination) SetOffset(v uint32)

func (*Pagination) String

func (x *Pagination) String() string

type Pagination_builder

type Pagination_builder struct {
	Offset     uint32
	Limit      uint32
	Descending bool
	// contains filtered or unexported fields
}

func (Pagination_builder) Build

func (b0 Pagination_builder) Build() *Pagination

type ScryptHashingConfig

type ScryptHashingConfig struct {
	SignerKey     string `protobuf:"bytes,1,opt,name=signer_key,json=signerKey,proto3" json:"signer_key,omitempty"`
	SaltSeparator string `protobuf:"bytes,2,opt,name=salt_separator,json=saltSeparator,proto3" json:"salt_separator,omitempty"`
	Rounds        int32  `protobuf:"varint,3,opt,name=rounds,proto3" json:"rounds,omitempty"`
	MemCost       int32  `protobuf:"varint,4,opt,name=mem_cost,json=memCost,proto3" json:"mem_cost,omitempty"`
	P             int32  `protobuf:"varint,5,opt,name=p,proto3" json:"p,omitempty"`
	KeyLen        int32  `protobuf:"varint,6,opt,name=key_len,json=keyLen,proto3" json:"key_len,omitempty"`
	// contains filtered or unexported fields
}

func (*ScryptHashingConfig) GetKeyLen

func (x *ScryptHashingConfig) GetKeyLen() int32

func (*ScryptHashingConfig) GetMemCost

func (x *ScryptHashingConfig) GetMemCost() int32

func (*ScryptHashingConfig) GetP

func (x *ScryptHashingConfig) GetP() int32

func (*ScryptHashingConfig) GetRounds

func (x *ScryptHashingConfig) GetRounds() int32

func (*ScryptHashingConfig) GetSaltSeparator

func (x *ScryptHashingConfig) GetSaltSeparator() string

func (*ScryptHashingConfig) GetSignerKey

func (x *ScryptHashingConfig) GetSignerKey() string

func (*ScryptHashingConfig) ProtoMessage

func (*ScryptHashingConfig) ProtoMessage()

func (*ScryptHashingConfig) ProtoReflect

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

func (*ScryptHashingConfig) Reset

func (x *ScryptHashingConfig) Reset()

func (*ScryptHashingConfig) SetKeyLen

func (x *ScryptHashingConfig) SetKeyLen(v int32)

func (*ScryptHashingConfig) SetMemCost

func (x *ScryptHashingConfig) SetMemCost(v int32)

func (*ScryptHashingConfig) SetP

func (x *ScryptHashingConfig) SetP(v int32)

func (*ScryptHashingConfig) SetRounds

func (x *ScryptHashingConfig) SetRounds(v int32)

func (*ScryptHashingConfig) SetSaltSeparator

func (x *ScryptHashingConfig) SetSaltSeparator(v string)

func (*ScryptHashingConfig) SetSignerKey

func (x *ScryptHashingConfig) SetSignerKey(v string)

func (*ScryptHashingConfig) String

func (x *ScryptHashingConfig) String() string

type ScryptHashingConfig_builder

type ScryptHashingConfig_builder struct {
	SignerKey     string
	SaltSeparator string
	Rounds        int32
	MemCost       int32
	P             int32
	KeyLen        int32
	// contains filtered or unexported fields
}

func (ScryptHashingConfig_builder) Build

type ScryptHashingInstance

type ScryptHashingInstance struct {
	Salt []byte `protobuf:"bytes,1,opt,name=salt,proto3" json:"salt,omitempty"`
	// contains filtered or unexported fields
}

func (*ScryptHashingInstance) GetSalt

func (x *ScryptHashingInstance) GetSalt() []byte

func (*ScryptHashingInstance) ProtoMessage

func (*ScryptHashingInstance) ProtoMessage()

func (*ScryptHashingInstance) ProtoReflect

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

func (*ScryptHashingInstance) Reset

func (x *ScryptHashingInstance) Reset()

func (*ScryptHashingInstance) SetSalt

func (x *ScryptHashingInstance) SetSalt(v []byte)

func (*ScryptHashingInstance) String

func (x *ScryptHashingInstance) String() string

type ScryptHashingInstance_builder

type ScryptHashingInstance_builder struct {
	Salt []byte
	// contains filtered or unexported fields
}

func (ScryptHashingInstance_builder) Build

Source Files

  • common.pb.go

Jump to

Keyboard shortcuts

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