schedule_dto

package
v0.0.0-...-bc49666 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEventData

func GetEventData(e Event) string

Types

type Event

type Event struct {
	EventName            string     `protobuf:"bytes,1,opt,name=EventName,proto3" json:"EventName,omitempty"`
	Location             string     `protobuf:"bytes,2,opt,name=Location,proto3" json:"Location,omitempty"`
	EventTime            *EventTime `protobuf:"bytes,3,opt,name=EventTime,proto3" json:"EventTime,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*Event) Descriptor

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

func (*Event) GetEventName

func (m *Event) GetEventName() string

func (*Event) GetEventTime

func (m *Event) GetEventTime() *EventTime

func (*Event) GetLocation

func (m *Event) GetLocation() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) String

func (m *Event) String() string

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 EventTime

type EventTime struct {
	DurationInSec           int32                `protobuf:"varint,1,opt,name=DurationInSec,proto3" json:"DurationInSec,omitempty"`
	PrecautionDurationInSec int32                `protobuf:"varint,2,opt,name=PrecautionDurationInSec,proto3" json:"PrecautionDurationInSec,omitempty"`
	ActualStartingTime      *timestamp.Timestamp `protobuf:"bytes,3,opt,name=ActualStartingTime,proto3" json:"ActualStartingTime,omitempty"`
	XXX_NoUnkeyedLiteral    struct{}             `json:"-"`
	XXX_unrecognized        []byte               `json:"-"`
	XXX_sizecache           int32                `json:"-"`
}

func (*EventTime) Descriptor

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

func (*EventTime) GetActualStartingTime

func (m *EventTime) GetActualStartingTime() *timestamp.Timestamp

func (*EventTime) GetDurationInSec

func (m *EventTime) GetDurationInSec() int32

func (*EventTime) GetPrecautionDurationInSec

func (m *EventTime) GetPrecautionDurationInSec() int32

func (*EventTime) ProtoMessage

func (*EventTime) ProtoMessage()

func (*EventTime) Reset

func (m *EventTime) Reset()

func (*EventTime) String

func (m *EventTime) String() string

func (*EventTime) XXX_DiscardUnknown

func (m *EventTime) XXX_DiscardUnknown()

func (*EventTime) XXX_Marshal

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

func (*EventTime) XXX_Merge

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

func (*EventTime) XXX_Size

func (m *EventTime) XXX_Size() int

func (*EventTime) XXX_Unmarshal

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

type Logger

type Logger interface {
	Log(string)
	LogError(string)
}

type Schedule

type Schedule struct {
	ID                   int32    `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	EventsList           []*Event `protobuf:"bytes,2,rep,name=EventsList,proto3" json:"EventsList,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func CreateDTOSchedule

func CreateDTOSchedule(schedule schedule.Schedule) *Schedule

func (*Schedule) Descriptor

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

func (*Schedule) GetEventsList

func (m *Schedule) GetEventsList() []*Event

func (*Schedule) GetID

func (m *Schedule) GetID() int32

func (*Schedule) ProtoMessage

func (*Schedule) ProtoMessage()

func (*Schedule) Reset

func (m *Schedule) Reset()

func (*Schedule) String

func (m *Schedule) String() string

func (*Schedule) XXX_DiscardUnknown

func (m *Schedule) XXX_DiscardUnknown()

func (*Schedule) XXX_Marshal

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

func (*Schedule) XXX_Merge

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

func (*Schedule) XXX_Size

func (m *Schedule) XXX_Size() int

func (*Schedule) XXX_Unmarshal

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

type SchedulePrinter

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

func (*SchedulePrinter) Init

func (schedulePrinter *SchedulePrinter) Init(logger Logger)

func (*SchedulePrinter) PrintSchedule

func (schedulePrinter *SchedulePrinter) PrintSchedule(schedule Schedule)

Jump to

Keyboard shortcuts

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