timewindow

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 4 Imported by: 0

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

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