timewindow

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Client *zia.Client
}

func New

func New(c *zia.Client) *Service

func (*Service) GetAll added in v0.0.4

func (service *Service) GetAll() ([]TimeWindow, error)

func (*Service) GetTimeWindow

func (service *Service) GetTimeWindow(timeWindowID int) (*TimeWindow, error)

func (*Service) GetTimeWindowByName

func (service *Service) GetTimeWindowByName(timeWindowName string) (*TimeWindow, error)

type TimeWindow

type TimeWindow struct {
	ID        int      `json:"id"`
	Name      string   `json:"name,omitempty"`
	StartTime int32    `json:"startTime,omitempty"`
	EndTime   int32    `json:"endTime,omitempty"`
	DayOfWeek []string `json:"dayOfWeek,omitempty"`
}

Jump to

Keyboard shortcuts

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