pb

package
v0.0.0-...-e613b9d Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool struct {
	Value                bool     `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Bool is ValueObject.

func (*Bool) Descriptor

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

func (*Bool) GetValue

func (m *Bool) GetValue() bool

func (Bool) MarshalZerologObject

func (p Bool) MarshalZerologObject(e *zerolog.Event)

func (*Bool) ProtoMessage

func (*Bool) ProtoMessage()

func (*Bool) Reset

func (m *Bool) Reset()

func (*Bool) String

func (m *Bool) String() string

func (*Bool) Validate

func (m *Bool) Validate() error

Validate checks the field values on Bool with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Bool) XXX_DiscardUnknown

func (m *Bool) XXX_DiscardUnknown()

func (*Bool) XXX_Marshal

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

func (*Bool) XXX_Merge

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

func (*Bool) XXX_Size

func (m *Bool) XXX_Size() int

func (*Bool) XXX_Unmarshal

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

type BoolValidationError

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

BoolValidationError is the validation error returned by Bool.Validate if the designated constraints aren't met.

func (BoolValidationError) Cause

func (e BoolValidationError) Cause() error

Cause function returns cause value.

func (BoolValidationError) Error

func (e BoolValidationError) Error() string

Error satisfies the builtin error interface

func (BoolValidationError) ErrorName

func (e BoolValidationError) ErrorName() string

ErrorName returns error name.

func (BoolValidationError) Field

func (e BoolValidationError) Field() string

Field function returns field value.

func (BoolValidationError) Key

func (e BoolValidationError) Key() bool

Key function returns key value.

func (BoolValidationError) Reason

func (e BoolValidationError) Reason() string

Reason function returns reason value.

type Booler

type Booler interface {
	Descriptor() ([]byte, []int)
	GetValue() bool
	MarshalZerologObject(*zerolog.Event)
	ProtoMessage()
	Reset()
	String() string
	Validate() error
	XXX_DiscardUnknown()
	XXX_Marshal([]byte, bool) ([]byte, error)
	XXX_Merge(protoiface.MessageV1)
	XXX_Size() int
	XXX_Unmarshal([]byte) error
}

Booler is an interface generated for "github.com/michilu/boilerplate/pb.Bool".

type Byte

type Byte struct {
	Value                []byte   `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Byte is ValueObject.

func (*Byte) Descriptor

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

func (*Byte) GetValue

func (m *Byte) GetValue() []byte

func (Byte) MarshalZerologObject

func (p Byte) MarshalZerologObject(e *zerolog.Event)

func (*Byte) ProtoMessage

func (*Byte) ProtoMessage()

func (*Byte) Reset

func (m *Byte) Reset()

func (*Byte) String

func (m *Byte) String() string

func (*Byte) Validate

func (m *Byte) Validate() error

Validate checks the field values on Byte with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Byte) XXX_DiscardUnknown

func (m *Byte) XXX_DiscardUnknown()

func (*Byte) XXX_Marshal

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

func (*Byte) XXX_Merge

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

func (*Byte) XXX_Size

func (m *Byte) XXX_Size() int

func (*Byte) XXX_Unmarshal

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

type ByteValidationError

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

ByteValidationError is the validation error returned by Byte.Validate if the designated constraints aren't met.

func (ByteValidationError) Cause

func (e ByteValidationError) Cause() error

Cause function returns cause value.

func (ByteValidationError) Error

func (e ByteValidationError) Error() string

Error satisfies the builtin error interface

func (ByteValidationError) ErrorName

func (e ByteValidationError) ErrorName() string

ErrorName returns error name.

func (ByteValidationError) Field

func (e ByteValidationError) Field() string

Field function returns field value.

func (ByteValidationError) Key

func (e ByteValidationError) Key() bool

Key function returns key value.

func (ByteValidationError) Reason

func (e ByteValidationError) Reason() string

Reason function returns reason value.

type Byter

type Byter interface {
	Descriptor() ([]byte, []int)
	GetValue() []byte
	MarshalZerologObject(*zerolog.Event)
	ProtoMessage()
	Reset()
	String() string
	Validate() error
	XXX_DiscardUnknown()
	XXX_Marshal([]byte, bool) ([]byte, error)
	XXX_Merge(protoiface.MessageV1)
	XXX_Size() int
	XXX_Unmarshal([]byte) error
}

Byter is an interface generated for "github.com/michilu/boilerplate/pb.Byte".

type DebugClient

type DebugClient struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

DebugClient is Entity

func (*DebugClient) Descriptor

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

func (*DebugClient) GetId

func (m *DebugClient) GetId() string

func (DebugClient) MarshalZerologObject

func (p DebugClient) MarshalZerologObject(e *zerolog.Event)

func (*DebugClient) ProtoMessage

func (*DebugClient) ProtoMessage()

func (*DebugClient) Reset

func (m *DebugClient) Reset()

func (*DebugClient) String

func (m *DebugClient) String() string

func (*DebugClient) Validate

func (m *DebugClient) Validate() error

Validate checks the field values on DebugClient with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*DebugClient) XXX_DiscardUnknown

func (m *DebugClient) XXX_DiscardUnknown()

func (*DebugClient) XXX_Marshal

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

func (*DebugClient) XXX_Merge

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

func (*DebugClient) XXX_Size

func (m *DebugClient) XXX_Size() int

func (*DebugClient) XXX_Unmarshal

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

type DebugClientValidationError

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

DebugClientValidationError is the validation error returned by DebugClient.Validate if the designated constraints aren't met.

func (DebugClientValidationError) Cause

Cause function returns cause value.

func (DebugClientValidationError) Error

Error satisfies the builtin error interface

func (DebugClientValidationError) ErrorName

func (e DebugClientValidationError) ErrorName() string

ErrorName returns error name.

func (DebugClientValidationError) Field

Field function returns field value.

func (DebugClientValidationError) Key

Key function returns key value.

func (DebugClientValidationError) Reason

Reason function returns reason value.

type DebugClienter

type DebugClienter interface {
	Descriptor() ([]byte, []int)
	GetId() string
	MarshalZerologObject(*zerolog.Event)
	ProtoMessage()
	Reset()
	String() string
	Validate() error
	XXX_DiscardUnknown()
	XXX_Marshal([]byte, bool) ([]byte, error)
	XXX_Merge(protoiface.MessageV1)
	XXX_Size() int
	XXX_Unmarshal([]byte) error
}

DebugClienter is an interface generated for "github.com/michilu/boilerplate/pb.DebugClient".

type Event

type Event struct {
	Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// origin is an identity of the operator who entered the event.
	Origin               string            `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"`
	TimePoint            []*EventTimePoint `protobuf:"bytes,3,rep,name=time_point,json=timePoint,proto3" json:"time_point,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

Event is Entity.

func (*Event) AddTimePoint

func (p *Event) AddTimePoint(tag string, timeStamp time.Time) (Eventer, error)

AddTimePoint returns a new Eventer with given the TimePoint.

func (*Event) Descriptor

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

func (*Event) GetId

func (m *Event) GetId() []byte

func (*Event) GetKey

func (p *Event) GetKey() []byte

func (*Event) GetOrigin

func (m *Event) GetOrigin() string

func (*Event) GetTimePoint

func (m *Event) GetTimePoint() []*EventTimePoint

func (Event) MarshalZerologObject

func (p Event) MarshalZerologObject(e *zerolog.Event)

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) String

func (m *Event) String() string

func (*Event) Validate

func (m *Event) Validate() error

Validate checks the field values on Event with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Event) XXX_DiscardUnknown

func (m *Event) XXX_DiscardUnknown()

func (*Event) XXX_Marshal

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

func (*Event) XXX_Merge

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

func (*Event) XXX_Size

func (m *Event) XXX_Size() int

func (*Event) XXX_Unmarshal

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

type EventTimePoint

type EventTimePoint struct {
	Timestamp            *timestamp.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Tag                  string               `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

EventTimePoint is Entity.

func (*EventTimePoint) Descriptor

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

func (*EventTimePoint) GetTag

func (m *EventTimePoint) GetTag() string

func (*EventTimePoint) GetTimestamp

func (m *EventTimePoint) GetTimestamp() *timestamp.Timestamp

func (*EventTimePoint) ProtoMessage

func (*EventTimePoint) ProtoMessage()

func (*EventTimePoint) Reset

func (m *EventTimePoint) Reset()

func (*EventTimePoint) String

func (m *EventTimePoint) String() string

func (*EventTimePoint) Validate

func (m *EventTimePoint) Validate() error

Validate checks the field values on EventTimePoint with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*EventTimePoint) XXX_DiscardUnknown

func (m *EventTimePoint) XXX_DiscardUnknown()

func (*EventTimePoint) XXX_Marshal

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

func (*EventTimePoint) XXX_Merge

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

func (*EventTimePoint) XXX_Size

func (m *EventTimePoint) XXX_Size() int

func (*EventTimePoint) XXX_Unmarshal

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

type EventTimePointValidationError

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

EventTimePointValidationError is the validation error returned by EventTimePoint.Validate if the designated constraints aren't met.

func (EventTimePointValidationError) Cause

Cause function returns cause value.

func (EventTimePointValidationError) Error

Error satisfies the builtin error interface

func (EventTimePointValidationError) ErrorName

func (e EventTimePointValidationError) ErrorName() string

ErrorName returns error name.

func (EventTimePointValidationError) Field

Field function returns field value.

func (EventTimePointValidationError) Key

Key function returns key value.

func (EventTimePointValidationError) Reason

Reason function returns reason value.

type EventValidationError

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

EventValidationError is the validation error returned by Event.Validate if the designated constraints aren't met.

func (EventValidationError) Cause

func (e EventValidationError) Cause() error

Cause function returns cause value.

func (EventValidationError) Error

func (e EventValidationError) Error() string

Error satisfies the builtin error interface

func (EventValidationError) ErrorName

func (e EventValidationError) ErrorName() string

ErrorName returns error name.

func (EventValidationError) Field

func (e EventValidationError) Field() string

Field function returns field value.

func (EventValidationError) Key

func (e EventValidationError) Key() bool

Key function returns key value.

func (EventValidationError) Reason

func (e EventValidationError) Reason() string

Reason function returns reason value.

type Eventer

type Eventer interface {
	AddTimePoint(string, time.Time) (Eventer, error)
	Descriptor() ([]byte, []int)
	GetId() []byte
	GetKey() []byte
	GetOrigin() string
	GetTimePoint() []*EventTimePoint
	MarshalZerologObject(*zerolog.Event)
	ProtoMessage()
	Reset()
	String() string
	Validate() error
	XXX_DiscardUnknown()
	XXX_Marshal([]byte, bool) ([]byte, error)
	XXX_Merge(protoiface.MessageV1)
	XXX_Size() int
	XXX_Unmarshal([]byte) error
}

Eventer is an interface generated for "github.com/michilu/boilerplate/pb.Event".

type Key

type Key struct {
	Key                  []byte   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Key is Entity.

func (*Key) Descriptor

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

func (*Key) GetKey

func (m *Key) GetKey() []byte

func (Key) MarshalZerologObject

func (p Key) MarshalZerologObject(e *zerolog.Event)

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) Reset

func (m *Key) Reset()

func (*Key) String

func (m *Key) String() string

func (*Key) Validate

func (m *Key) Validate() error

Validate checks the field values on Key with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Key) XXX_DiscardUnknown

func (m *Key) XXX_DiscardUnknown()

func (*Key) XXX_Marshal

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

func (*Key) XXX_Merge

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

func (*Key) XXX_Size

func (m *Key) XXX_Size() int

func (*Key) XXX_Unmarshal

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

type KeyPrefix

type KeyPrefix struct {
	Prefix               []byte   `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

KeyPrefix is ValueObject.

func (*KeyPrefix) Descriptor

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

func (*KeyPrefix) GetPrefix

func (m *KeyPrefix) GetPrefix() []byte

func (KeyPrefix) MarshalZerologObject

func (p KeyPrefix) MarshalZerologObject(e *zerolog.Event)

func (*KeyPrefix) ProtoMessage

func (*KeyPrefix) ProtoMessage()

func (*KeyPrefix) Reset

func (m *KeyPrefix) Reset()

func (*KeyPrefix) String

func (m *KeyPrefix) String() string

func (*KeyPrefix) Validate

func (m *KeyPrefix) Validate() error

Validate checks the field values on KeyPrefix with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*KeyPrefix) XXX_DiscardUnknown

func (m *KeyPrefix) XXX_DiscardUnknown()

func (*KeyPrefix) XXX_Marshal

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

func (*KeyPrefix) XXX_Merge

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

func (*KeyPrefix) XXX_Size

func (m *KeyPrefix) XXX_Size() int

func (*KeyPrefix) XXX_Unmarshal

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

type KeyPrefixValidationError

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

KeyPrefixValidationError is the validation error returned by KeyPrefix.Validate if the designated constraints aren't met.

func (KeyPrefixValidationError) Cause

func (e KeyPrefixValidationError) Cause() error

Cause function returns cause value.

func (KeyPrefixValidationError) Error

func (e KeyPrefixValidationError) Error() string

Error satisfies the builtin error interface

func (KeyPrefixValidationError) ErrorName

func (e KeyPrefixValidationError) ErrorName() string

ErrorName returns error name.

func (KeyPrefixValidationError) Field

func (e KeyPrefixValidationError) Field() string

Field function returns field value.

func (KeyPrefixValidationError) Key

Key function returns key value.

func (KeyPrefixValidationError) Reason

func (e KeyPrefixValidationError) Reason() string

Reason function returns reason value.

type KeyPrefixer

type KeyPrefixer interface {
	Descriptor() ([]byte, []int)
	GetPrefix() []byte
	MarshalZerologObject(*zerolog.Event)
	ProtoMessage()
	Reset()
	String() string
	Validate() error
	XXX_DiscardUnknown()
	XXX_Marshal([]byte, bool) ([]byte, error)
	XXX_Merge(protoiface.MessageV1)
	XXX_Size() int
	XXX_Unmarshal([]byte) error
}

KeyPrefixer is an interface generated for "github.com/michilu/boilerplate/pb.KeyPrefix".

type KeyValidationError

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

KeyValidationError is the validation error returned by Key.Validate if the designated constraints aren't met.

func (KeyValidationError) Cause

func (e KeyValidationError) Cause() error

Cause function returns cause value.

func (KeyValidationError) Error

func (e KeyValidationError) Error() string

Error satisfies the builtin error interface

func (KeyValidationError) ErrorName

func (e KeyValidationError) ErrorName() string

ErrorName returns error name.

func (KeyValidationError) Field

func (e KeyValidationError) Field() string

Field function returns field value.

func (KeyValidationError) Key

func (e KeyValidationError) Key() bool

Key function returns key value.

func (KeyValidationError) Reason

func (e KeyValidationError) Reason() string

Reason function returns reason value.

type KeyValue

type KeyValue struct {
	Key                  []byte   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value                []byte   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

KeyValue is Entity.

func (*KeyValue) Descriptor

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

func (*KeyValue) GetKey

func (m *KeyValue) GetKey() []byte

func (*KeyValue) GetValue

func (m *KeyValue) GetValue() []byte

func (KeyValue) MarshalZerologObject

func (p KeyValue) MarshalZerologObject(e *zerolog.Event)

func (*KeyValue) ProtoMessage

func (*KeyValue) ProtoMessage()

func (*KeyValue) Reset

func (m *KeyValue) Reset()

func (*KeyValue) String

func (m *KeyValue) String() string

func (*KeyValue) Validate

func (m *KeyValue) Validate() error

Validate checks the field values on KeyValue with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*KeyValue) XXX_DiscardUnknown

func (m *KeyValue) XXX_DiscardUnknown()

func (*KeyValue) XXX_Marshal

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

func (*KeyValue) XXX_Merge

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

func (*KeyValue) XXX_Size

func (m *KeyValue) XXX_Size() int

func (*KeyValue) XXX_Unmarshal

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

type KeyValueValidationError

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

KeyValueValidationError is the validation error returned by KeyValue.Validate if the designated constraints aren't met.

func (KeyValueValidationError) Cause

func (e KeyValueValidationError) Cause() error

Cause function returns cause value.

func (KeyValueValidationError) Error

func (e KeyValueValidationError) Error() string

Error satisfies the builtin error interface

func (KeyValueValidationError) ErrorName

func (e KeyValueValidationError) ErrorName() string

ErrorName returns error name.

func (KeyValueValidationError) Field

func (e KeyValueValidationError) Field() string

Field function returns field value.

func (KeyValueValidationError) Key

func (e KeyValueValidationError) Key() bool

Key function returns key value.

func (KeyValueValidationError) Reason

func (e KeyValueValidationError) Reason() string

Reason function returns reason value.

type KeyValuer

type KeyValuer interface {
	Descriptor() ([]byte, []int)
	GetKey() []byte
	GetValue() []byte
	MarshalZerologObject(*zerolog.Event)
	ProtoMessage()
	Reset()
	String() string
	Validate() error
	XXX_DiscardUnknown()
	XXX_Marshal([]byte, bool) ([]byte, error)
	XXX_Merge(protoiface.MessageV1)
	XXX_Size() int
	XXX_Unmarshal([]byte) error
}

KeyValuer is an interface generated for "github.com/michilu/boilerplate/pb.KeyValue".

type Keyer

type Keyer interface {
	Descriptor() ([]byte, []int)
	GetKey() []byte
	MarshalZerologObject(*zerolog.Event)
	ProtoMessage()
	Reset()
	String() string
	Validate() error
	XXX_DiscardUnknown()
	XXX_Marshal([]byte, bool) ([]byte, error)
	XXX_Merge(protoiface.MessageV1)
	XXX_Size() int
	XXX_Unmarshal([]byte) error
}

Keyer is an interface generated for "github.com/michilu/boilerplate/pb.Key".

Jump to

Keyboard shortcuts

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