company

package
v0.0.0-...-c34d2c7 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package company is a generated protocol buffer package.

It is generated from these files:

company.proto

It has these top-level messages:

Company
CompanyList
CompanyListRequest
CreateCompanyRequest
GetCompanyRequest
Team
TeamList
TeamListRequest
CreateTeamRequest
GetTeamRequest
Job
JobList
JobListRequest
CreateJobRequest
GetJobRequest
Shift
ShiftList
ShiftListRequest
WorkerShiftListRequest
BulkPublishShiftsRequest
CreateShiftRequest
GetShiftRequest
DirectoryEntry
NewDirectoryEntry
DirectoryEntryRequest
DirectoryList
DirectoryListRequest
AdminListRequest
Admins
AdminOfRequest
AdminOfList
WorkerListRequest
Workers
Worker
WorkerOfRequest
WorkerOfList
Association
AssociationList
TimeZoneList
TimeZoneListRequest
ScheduledPerWeek
GrowthGraphResponse
GrowthGraphRequest

Index

Constants

View Source
const (
	// ServerPort tells the gRPC server what port to listen on
	ServerPort = ":1000"
	// Endpoint defines the DNS of the account server for clients
	// to access the server in Kubernetes.
	Endpoint = "companyserver-service" + ServerPort
)

Variables

View Source
var (
	ErrInvalidLengthCompany = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCompany   = fmt.Errorf("proto: integer overflow")
)

Functions

func RegisterCompanyServiceServer

func RegisterCompanyServiceServer(s *grpc.Server, srv CompanyServiceServer)

Types

type AdminListRequest

type AdminListRequest struct {
	CompanyUuid string `protobuf:"bytes,1,opt,name=company_uuid,json=companyUuid,proto3" json:"company_uuid,omitempty"`
}

admins

func (*AdminListRequest) Descriptor

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

func (*AdminListRequest) Marshal

func (m *AdminListRequest) Marshal() (dAtA []byte, err error)

func (*AdminListRequest) MarshalTo

func (m *AdminListRequest) MarshalTo(dAtA []byte) (int, error)

func (*AdminListRequest) ProtoMessage

func (*AdminListRequest) ProtoMessage()

func (*AdminListRequest) Reset

func (m *AdminListRequest) Reset()

func (*AdminListRequest) Size

func (m *AdminListRequest) Size() (n int)

func (*AdminListRequest) String

func (m *AdminListRequest) String() string

func (*AdminListRequest) Unmarshal

func (m *AdminListRequest) Unmarshal(dAtA []byte) error

type AdminOfList

type AdminOfList struct {
	UserUuid  string    `protobuf:"bytes,1,opt,name=user_uuid,json=userUuid,proto3" json:"user_uuid,omitempty"`
	Companies []Company `protobuf:"bytes,2,rep,name=companies" json:"companies"`
}

func (*AdminOfList) Descriptor

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

func (*AdminOfList) GetCompanies

func (m *AdminOfList) GetCompanies() []Company

func (*AdminOfList) Marshal

func (m *AdminOfList) Marshal() (dAtA []byte, err error)

func (*AdminOfList) MarshalTo

func (m *AdminOfList) MarshalTo(dAtA []byte) (int, error)

func (*AdminOfList) ProtoMessage

func (*AdminOfList) ProtoMessage()

func (*AdminOfList) Reset

func (m *AdminOfList) Reset()

func (*AdminOfList) Size

func (m *AdminOfList) Size() (n int)

func (*AdminOfList) String

func (m *AdminOfList) String() string

func (*AdminOfList) Unmarshal

func (m *AdminOfList) Unmarshal(dAtA []byte) error

type AdminOfRequest

type AdminOfRequest struct {
	UserUuid string `protobuf:"bytes,1,opt,name=user_uuid,json=userUuid,proto3" json:"user_uuid,omitempty"`
}

func (*AdminOfRequest) Descriptor

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

func (*AdminOfRequest) Marshal

func (m *AdminOfRequest) Marshal() (dAtA []byte, err error)

func (*AdminOfRequest) MarshalTo

func (m *AdminOfRequest) MarshalTo(dAtA []byte) (int, error)

func (*AdminOfRequest) ProtoMessage

func (*AdminOfRequest) ProtoMessage()

func (*AdminOfRequest) Reset

func (m *AdminOfRequest) Reset()

func (*AdminOfRequest) Size

func (m *AdminOfRequest) Size() (n int)

func (*AdminOfRequest) String

func (m *AdminOfRequest) String() string

func (*AdminOfRequest) Unmarshal

func (m *AdminOfRequest) Unmarshal(dAtA []byte) error

type Admins

type Admins struct {
	CompanyUuid string           `protobuf:"bytes,1,opt,name=company_uuid,json=companyUuid,proto3" json:"company_uuid,omitempty"`
	Admins      []DirectoryEntry `protobuf:"bytes,2,rep,name=admins" json:"admins"`
}

func (*Admins) Descriptor

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

func (*Admins) GetAdmins

func (m *Admins) GetAdmins() []DirectoryEntry

func (*Admins) Marshal

func (m *Admins) Marshal() (dAtA []byte, err error)

func (*Admins) MarshalTo

func (m *Admins) MarshalTo(dAtA []byte) (int, error)

func (*Admins) ProtoMessage

func (*Admins) ProtoMessage()

func (*Admins) Reset

func (m *Admins) Reset()

func (*Admins) Size

func (m *Admins) Size() (n int)

func (*Admins) String

func (m *Admins) String() string

func (*Admins) Unmarshal

func (m *Admins) Unmarshal(dAtA []byte) error

type Association

type Association struct {
	Account DirectoryEntry `protobuf:"bytes,1,opt,name=account" json:"account"`
	Teams   []Team         `protobuf:"bytes,2,rep,name=teams" json:"teams"`
	Admin   bool           `protobuf:"varint,3,opt,name=admin,proto3" json:"admin,omitempty"`
}

func (*Association) Descriptor

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

func (*Association) GetAccount

func (m *Association) GetAccount() DirectoryEntry

func (*Association) GetTeams

func (m *Association) GetTeams() []Team

func (*Association) Marshal

func (m *Association) Marshal() (dAtA []byte, err error)

func (*Association) MarshalTo

func (m *Association) MarshalTo(dAtA []byte) (int, error)

func (*Association) ProtoMessage

func (*Association) ProtoMessage()

func (*Association) Reset

func (m *Association) Reset()

func (*Association) Size

func (m *Association) Size() (n int)

func (*Association) String

func (m *Association) String() string

func (*Association) Unmarshal

func (m *Association) Unmarshal(dAtA []byte) error

type AssociationList

type AssociationList struct {
	Accounts []Association `protobuf:"bytes,1,rep,name=accounts" json:"accounts"`
	Limit    int32         `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset   int32         `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
}

func (*AssociationList) Descriptor

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

func (*AssociationList) GetAccounts

func (m *AssociationList) GetAccounts() []Association

func (*AssociationList) Marshal

func (m *AssociationList) Marshal() (dAtA []byte, err error)

func (*AssociationList) MarshalTo

func (m *AssociationList) MarshalTo(dAtA []byte) (int, error)

func (*AssociationList) ProtoMessage

func (*AssociationList) ProtoMessage()

func (*AssociationList) Reset

func (m *AssociationList) Reset()

func (*AssociationList) Size

func (m *AssociationList) Size() (n int)

func (*AssociationList) String

func (m *AssociationList) String() string

func (*AssociationList) Unmarshal

func (m *AssociationList) Unmarshal(dAtA []byte) error

type BulkPublishShiftsRequest

type BulkPublishShiftsRequest struct {
	CompanyUuid      string    `protobuf:"bytes,1,opt,name=company_uuid,json=companyUuid,proto3" json:"company_uuid,omitempty"`
	TeamUuid         string    `protobuf:"bytes,2,opt,name=team_uuid,json=teamUuid,proto3" json:"team_uuid,omitempty"`
	UserUuid         string    `protobuf:"bytes,3,opt,name=user_uuid,json=userUuid,proto3" json:"user_uuid,omitempty"`
	JobUuid          string    `protobuf:"bytes,4,opt,name=job_uuid,json=jobUuid,proto3" json:"job_uuid,omitempty"`
	ShiftStartAfter  time.Time `protobuf:"bytes,5,opt,name=shift_start_after,json=shiftStartAfter,stdtime" json:"shift_start_after"`
	ShiftStartBefore time.Time `protobuf:"bytes,6,opt,name=shift_start_before,json=shiftStartBefore,stdtime" json:"shift_start_before"`
	Published        bool      `protobuf:"varint,7,opt,name=published,proto3" json:"published,omitempty"`
}

func (*BulkPublishShiftsRequest) Descriptor

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

func (*BulkPublishShiftsRequest) GetShiftStartAfter

func (m *BulkPublishShiftsRequest) GetShiftStartAfter() time.Time

func (*BulkPublishShiftsRequest) GetShiftStartBefore

func (m *BulkPublishShiftsRequest) GetShiftStartBefore() time.Time

func (*BulkPublishShiftsRequest) Marshal

func (m *BulkPublishShiftsRequest) Marshal() (dAtA []byte, err error)

func (*BulkPublishShiftsRequest) MarshalTo

func (m *BulkPublishShiftsRequest) MarshalTo(dAtA []byte) (int, error)

func (*BulkPublishShiftsRequest) ProtoMessage

func (*BulkPublishShiftsRequest) ProtoMessage()

func (*BulkPublishShiftsRequest) Reset

func (m *BulkPublishShiftsRequest) Reset()

func (*BulkPublishShiftsRequest) Size

func (m *BulkPublishShiftsRequest) Size() (n int)

func (*BulkPublishShiftsRequest) String

func (m *BulkPublishShiftsRequest) String() string

func (*BulkPublishShiftsRequest) Unmarshal

func (m *BulkPublishShiftsRequest) Unmarshal(dAtA []byte) error

type Company

type Company struct {
	Uuid                 string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty" db:"uuid"`
	Name                 string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" db:"name"`
	Archived             bool   `protobuf:"varint,3,opt,name=archived,proto3" json:"archived,omitempty" db:"archived"`
	DefaultTimezone      string `` /* 128-byte string literal not displayed */
	DefaultDayWeekStarts string `` /* 154-byte string literal not displayed */
}

func (*Company) Descriptor

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

func (*Company) Marshal

func (m *Company) Marshal() (dAtA []byte, err error)

func (*Company) MarshalTo

func (m *Company) MarshalTo(dAtA []byte) (int, error)

func (*Company) ProtoMessage

func (*Company) ProtoMessage()

func (*Company) Reset

func (m *Company) Reset()

func (*Company) Size

func (m *Company) Size() (n int)

func (*Company) String

func (m *Company) String() string

func (*Company) Unmarshal

func (m *Company) Unmarshal(dAtA []byte) error

type CompanyList

type CompanyList struct {
	Companies []Company `protobuf:"bytes,1,rep,name=companies" json:"companies"`
	Limit     int32     `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset    int32     `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
}

func (*CompanyList) Descriptor

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

func (*CompanyList) GetCompanies

func (m *CompanyList) GetCompanies() []Company

func (*CompanyList) Marshal

func (m *CompanyList) Marshal() (dAtA []byte, err error)

func (*CompanyList) MarshalTo

func (m *CompanyList) MarshalTo(dAtA []byte) (int, error)

func (*CompanyList) ProtoMessage

func (*CompanyList) ProtoMessage()

func (*CompanyList) Reset

func (m *CompanyList) Reset()

func (*CompanyList) Size

func (m *CompanyList) Size() (n int)

func (*CompanyList) String

func (m *CompanyList) String() string

func (*CompanyList) Unmarshal

func (m *CompanyList) Unmarshal(dAtA []byte) error

type CompanyListRequest

type CompanyListRequest struct {
	Offset int32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
	Limit  int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
}

func (*CompanyListRequest) Descriptor

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

func (*CompanyListRequest) Marshal

func (m *CompanyListRequest) Marshal() (dAtA []byte, err error)

func (*CompanyListRequest) MarshalTo

func (m *CompanyListRequest) MarshalTo(dAtA []byte) (int, error)

func (*CompanyListRequest) ProtoMessage

func (*CompanyListRequest) ProtoMessage()

func (*CompanyListRequest) Reset

func (m *CompanyListRequest) Reset()

func (*CompanyListRequest) Size

func (m *CompanyListRequest) Size() (n int)

func (*CompanyListRequest) String

func (m *CompanyListRequest) String() string

func (*CompanyListRequest) Unmarshal

func (m *CompanyListRequest) Unmarshal(dAtA []byte) error

type CompanyServiceClient

type CompanyServiceClient interface {
	CreateCompany(ctx context.Context, in *CreateCompanyRequest, opts ...grpc.CallOption) (*Company, error)
	ListCompanies(ctx context.Context, in *CompanyListRequest, opts ...grpc.CallOption) (*CompanyList, error)
	GetCompany(ctx context.Context, in *GetCompanyRequest, opts ...grpc.CallOption) (*Company, error)
	UpdateCompany(ctx context.Context, in *Company, opts ...grpc.CallOption) (*Company, error)
	// teams
	CreateTeam(ctx context.Context, in *CreateTeamRequest, opts ...grpc.CallOption) (*Team, error)
	ListTeams(ctx context.Context, in *TeamListRequest, opts ...grpc.CallOption) (*TeamList, error)
	GetTeam(ctx context.Context, in *GetTeamRequest, opts ...grpc.CallOption) (*Team, error)
	UpdateTeam(ctx context.Context, in *Team, opts ...grpc.CallOption) (*Team, error)
	GetWorkerTeamInfo(ctx context.Context, in *Worker, opts ...grpc.CallOption) (*Worker, error)
	CreateJob(ctx context.Context, in *CreateJobRequest, opts ...grpc.CallOption) (*Job, error)
	ListJobs(ctx context.Context, in *JobListRequest, opts ...grpc.CallOption) (*JobList, error)
	GetJob(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*Job, error)
	UpdateJob(ctx context.Context, in *Job, opts ...grpc.CallOption) (*Job, error)
	CreateShift(ctx context.Context, in *CreateShiftRequest, opts ...grpc.CallOption) (*Shift, error)
	ListShifts(ctx context.Context, in *ShiftListRequest, opts ...grpc.CallOption) (*ShiftList, error)
	ListWorkerShifts(ctx context.Context, in *WorkerShiftListRequest, opts ...grpc.CallOption) (*ShiftList, error)
	BulkPublishShifts(ctx context.Context, in *BulkPublishShiftsRequest, opts ...grpc.CallOption) (*ShiftList, error)
	GetShift(ctx context.Context, in *GetShiftRequest, opts ...grpc.CallOption) (*Shift, error)
	DeleteShift(ctx context.Context, in *GetShiftRequest, opts ...grpc.CallOption) (*google_protobuf2.Empty, error)
	UpdateShift(ctx context.Context, in *Shift, opts ...grpc.CallOption) (*Shift, error)
	// Directory
	CreateDirectory(ctx context.Context, in *NewDirectoryEntry, opts ...grpc.CallOption) (*DirectoryEntry, error)
	Directory(ctx context.Context, in *DirectoryListRequest, opts ...grpc.CallOption) (*DirectoryList, error)
	GetAssociations(ctx context.Context, in *DirectoryListRequest, opts ...grpc.CallOption) (*AssociationList, error)
	GetDirectoryEntry(ctx context.Context, in *DirectoryEntryRequest, opts ...grpc.CallOption) (*DirectoryEntry, error)
	UpdateDirectoryEntry(ctx context.Context, in *DirectoryEntry, opts ...grpc.CallOption) (*DirectoryEntry, error)
	// Admins
	ListAdmins(ctx context.Context, in *AdminListRequest, opts ...grpc.CallOption) (*Admins, error)
	CreateAdmin(ctx context.Context, in *DirectoryEntryRequest, opts ...grpc.CallOption) (*DirectoryEntry, error)
	GetAdmin(ctx context.Context, in *DirectoryEntryRequest, opts ...grpc.CallOption) (*DirectoryEntry, error)
	DeleteAdmin(ctx context.Context, in *DirectoryEntryRequest, opts ...grpc.CallOption) (*google_protobuf2.Empty, error)
	// Workers
	ListWorkers(ctx context.Context, in *WorkerListRequest, opts ...grpc.CallOption) (*Workers, error)
	GetWorker(ctx context.Context, in *Worker, opts ...grpc.CallOption) (*DirectoryEntry, error)
	DeleteWorker(ctx context.Context, in *Worker, opts ...grpc.CallOption) (*google_protobuf2.Empty, error)
	CreateWorker(ctx context.Context, in *Worker, opts ...grpc.CallOption) (*DirectoryEntry, error)
	// timezones
	ListTimeZones(ctx context.Context, in *TimeZoneListRequest, opts ...grpc.CallOption) (*TimeZoneList, error)
	// growth graph
	GrowthGraph(ctx context.Context, in *GrowthGraphRequest, opts ...grpc.CallOption) (*GrowthGraphResponse, error)
	GetWorkerOf(ctx context.Context, in *WorkerOfRequest, opts ...grpc.CallOption) (*WorkerOfList, error)
	GetAdminOf(ctx context.Context, in *AdminOfRequest, opts ...grpc.CallOption) (*AdminOfList, error)
}

func NewClient

func NewClient() (CompanyServiceClient, func() error, error)

NewClient returns a gRPC client for interacting with the company. After calling it, run a defer close on the close function

func NewCompanyServiceClient

func NewCompanyServiceClient(cc *grpc.ClientConn) CompanyServiceClient

type CompanyServiceServer

type CompanyServiceServer interface {
	CreateCompany(context.Context, *CreateCompanyRequest) (*Company, error)
	ListCompanies(context.Context, *CompanyListRequest) (*CompanyList, error)
	GetCompany(context.Context, *GetCompanyRequest) (*Company, error)
	UpdateCompany(context.Context, *Company) (*Company, error)
	// teams
	CreateTeam(context.Context, *CreateTeamRequest) (*Team, error)
	ListTeams(context.Context, *TeamListRequest) (*TeamList, error)
	GetTeam(context.Context, *GetTeamRequest) (*Team, error)
	UpdateTeam(context.Context, *Team) (*Team, error)
	GetWorkerTeamInfo(context.Context, *Worker) (*Worker, error)
	CreateJob(context.Context, *CreateJobRequest) (*Job, error)
	ListJobs(context.Context, *JobListRequest) (*JobList, error)
	GetJob(context.Context, *GetJobRequest) (*Job, error)
	UpdateJob(context.Context, *Job) (*Job, error)
	CreateShift(context.Context, *CreateShiftRequest) (*Shift, error)
	ListShifts(context.Context, *ShiftListRequest) (*ShiftList, error)
	ListWorkerShifts(context.Context, *WorkerShiftListRequest) (*ShiftList, error)
	BulkPublishShifts(context.Context, *BulkPublishShiftsRequest) (*ShiftList, error)
	GetShift(context.Context, *GetShiftRequest) (*Shift, error)
	DeleteShift(context.Context, *GetShiftRequest) (*google_protobuf2.Empty, error)
	UpdateShift(context.Context, *Shift) (*Shift, error)
	// Directory
	CreateDirectory(context.Context, *NewDirectoryEntry) (*DirectoryEntry, error)
	Directory(context.Context, *DirectoryListRequest) (*DirectoryList, error)
	GetAssociations(context.Context, *DirectoryListRequest) (*AssociationList, error)
	GetDirectoryEntry(context.Context, *DirectoryEntryRequest) (*DirectoryEntry, error)
	UpdateDirectoryEntry(context.Context, *DirectoryEntry) (*DirectoryEntry, error)
	// Admins
	ListAdmins(context.Context, *AdminListRequest) (*Admins, error)
	CreateAdmin(context.Context, *DirectoryEntryRequest) (*DirectoryEntry, error)
	GetAdmin(context.Context, *DirectoryEntryRequest) (*DirectoryEntry, error)
	DeleteAdmin(context.Context, *DirectoryEntryRequest) (*google_protobuf2.Empty, error)
	// Workers
	ListWorkers(context.Context, *WorkerListRequest) (*Workers, error)
	GetWorker(context.Context, *Worker) (*DirectoryEntry, error)
	DeleteWorker(context.Context, *Worker) (*google_protobuf2.Empty, error)
	CreateWorker(context.Context, *Worker) (*DirectoryEntry, error)
	// timezones
	ListTimeZones(context.Context, *TimeZoneListRequest) (*TimeZoneList, error)
	// growth graph
	GrowthGraph(context.Context, *GrowthGraphRequest) (*GrowthGraphResponse, error)
	GetWorkerOf(context.Context, *WorkerOfRequest) (*WorkerOfList, error)
	GetAdminOf(context.Context, *AdminOfRequest) (*AdminOfList, error)
}

type CreateCompanyRequest

type CreateCompanyRequest struct {
	Name                 string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	DefaultTimezone      string `protobuf:"bytes,2,opt,name=default_timezone,json=defaultTimezone,proto3" json:"default_timezone,omitempty"`
	DefaultDayWeekStarts string `protobuf:"bytes,3,opt,name=default_day_week_starts,json=defaultDayWeekStarts,proto3" json:"default_day_week_starts,omitempty"`
}

func (*CreateCompanyRequest) Descriptor

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

func (*CreateCompanyRequest) Marshal

func (m *CreateCompanyRequest) Marshal() (dAtA []byte, err error)

func (*CreateCompanyRequest) MarshalTo

func (m *CreateCompanyRequest) MarshalTo(dAtA []byte) (int, error)

func (*CreateCompanyRequest) ProtoMessage

func (*CreateCompanyRequest) ProtoMessage()

func (*CreateCompanyRequest) Reset

func (m *CreateCompanyRequest) Reset()

func (*CreateCompanyRequest) Size

func (m *CreateCompanyRequest) Size() (n int)

func (*CreateCompanyRequest) String

func (m *CreateCompanyRequest) String() string

func (*CreateCompanyRequest) Unmarshal

func (m *CreateCompanyRequest) Unmarshal(dAtA []byte) error

type CreateJobRequest

type CreateJobRequest struct {
	CompanyUuid string `protobuf:"bytes,1,opt,name=company_uuid,json=companyUuid,proto3" json:"company_uuid,omitempty"`
	TeamUuid    string `protobuf:"bytes,2,opt,name=team_uuid,json=teamUuid,proto3" json:"team_uuid,omitempty"`
	Name        string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Color       string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"`
}

func (*CreateJobRequest) Descriptor

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

func (*CreateJobRequest) Marshal

func (m *CreateJobRequest) Marshal() (dAtA []byte, err error)

func (*CreateJobRequest) MarshalTo

func (m *CreateJobRequest) MarshalTo(dAtA []byte) (int, error)

func (*CreateJobRequest) ProtoMessage

func (*CreateJobRequest) ProtoMessage()

func (*CreateJobRequest) Reset

func (m *CreateJobRequest) Reset()

func (*CreateJobRequest) Size

func (m *CreateJobRequest) Size() (n int)

func (*CreateJobRequest) String

func (m *CreateJobRequest) String() string

func (*CreateJobRequest) Unmarshal

func (m *CreateJobRequest) Unmarshal(dAtA []byte) error

type CreateShiftRequest

type CreateShiftRequest struct {
	CompanyUuid string    `protobuf:"bytes,1,opt,name=company_uuid,json=companyUuid,proto3" json:"company_uuid,omitempty"`
	TeamUuid    string    `protobuf:"bytes,2,opt,name=team_uuid,json=teamUuid,proto3" json:"team_uuid,omitempty"`
	Start       time.Time `protobuf:"bytes,4,opt,name=start,stdtime" json:"start"`
	Stop        time.Time `protobuf:"bytes,5,opt,name=stop,stdtime" json:"stop"`
	UserUuid    string    `protobuf:"bytes,6,opt,name=user_uuid,json=userUuid,proto3" json:"user_uuid,omitempty"`
	JobUuid     string    `protobuf:"bytes,7,opt,name=job_uuid,json=jobUuid,proto3" json:"job_uuid,omitempty"`
	Published   bool      `protobuf:"varint,8,opt,name=published,proto3" json:"published,omitempty"`
}

func (*CreateShiftRequest) Descriptor

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

func (*CreateShiftRequest) GetStart

func (m *CreateShiftRequest) GetStart() time.Time

func (*CreateShiftRequest) GetStop

func (m *CreateShiftRequest) GetStop() time.Time

func (*CreateShiftRequest) Marshal

func (m *CreateShiftRequest) Marshal() (dAtA []byte, err error)

func (*CreateShiftRequest) MarshalTo

func (m *CreateShiftRequest) MarshalTo(dAtA []byte) (int, error)

func (*CreateShiftRequest) ProtoMessage

func (*CreateShiftRequest) ProtoMessage()

func (*CreateShiftRequest) Reset

func (m *CreateShiftRequest) Reset()

func (*CreateShiftRequest) Size

func (m *CreateShiftRequest) Size() (n int)

func (*CreateShiftRequest) String

func (m *CreateShiftRequest) String() string

func (*CreateShiftRequest) Unmarshal

func (m *CreateShiftRequest) Unmarshal(dAtA []byte) error

type CreateTeamRequest

type CreateTeamRequest struct {
	CompanyUuid   string `protobuf:"bytes,1,opt,name=company_uuid,json=companyUuid,proto3" json:"company_uuid,omitempty"`
	Name          string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Timezone      string `protobuf:"bytes,3,opt,name=timezone,proto3" json:"timezone,omitempty"`
	DayWeekStarts string `protobuf:"bytes,4,opt,name=day_week_starts,json=dayWeekStarts,proto3" json:"day_week_starts,omitempty"`
	Color         string `protobuf:"bytes,5,opt,name=color,proto3" json:"color,omitempty"`
}

func (*CreateTeamRequest) Descriptor

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

func (*CreateTeamRequest) Marshal

func (m *CreateTeamRequest) Marshal() (dAtA []byte, err error)

func (*CreateTeamRequest) MarshalTo

func (m *CreateTeamRequest) MarshalTo(dAtA []byte) (int, error)

func (*CreateTeamRequest) ProtoMessage

func (*CreateTeamRequest) ProtoMessage()

func (*CreateTeamRequest) Reset

func (m *CreateTeamRequest) Reset()

func (*CreateTeamRequest) Size

func (m *CreateTeamRequest) Size() (n int)

func (*CreateTeamRequest) String

func (m *CreateTeamRequest) String() string

func (*CreateTeamRequest) Unmarshal

func (m *CreateTeamRequest) Unmarshal(dAtA []byte) error

type DirectoryEntry

type DirectoryEntry struct {
	UserUuid    string `protobuf:"bytes,1,opt,name=user_uuid,json=userUuid,proto3" json:"user_uuid,omitempty"`
	InternalId  string `protobuf:"bytes,2,opt,name=internal_id,json=internalId,proto3" json:"internal_id,omitempty"`
	CompanyUuid string `protobuf:"bytes,3,opt,name=company_uuid,json=companyUuid,proto3" json:"company_uuid,omitempty"`
	// coming from account
	Name               string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	Email              string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"`
	ConfirmedAndActive bool   `protobuf:"varint,7,opt,name=confirmed_and_active,json=confirmedAndActive,proto3" json:"confirmed_and_active,omitempty"`
	Phonenumber        string `protobuf:"bytes,8,opt,name=phonenumber,proto3" json:"phonenumber,omitempty"`
	PhotoUrl           string `protobuf:"bytes,9,opt,name=photo_url,json=photoUrl,proto3" json:"photo_url,omitempty"`
}

directory

func (*DirectoryEntry) Descriptor

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

func (*DirectoryEntry) Marshal

func (m *DirectoryEntry) Marshal() (dAtA []byte, err error)

func (*DirectoryEntry) MarshalTo

func (m *DirectoryEntry) MarshalTo(dAtA []byte) (int, error)

func (*DirectoryEntry) ProtoMessage

func (*DirectoryEntry) ProtoMessage()

func (*DirectoryEntry) Reset

func (m *DirectoryEntry) Reset()

func (*DirectoryEntry) Size

func (m *DirectoryEntry) Size() (n int)

func (*DirectoryEntry) String

func (m *DirectoryEntry) String() string

func (*DirectoryEntry) Unmarshal

func (m *DirectoryEntry) Unmarshal(dAtA []byte) error

type DirectoryEntryRequest

type DirectoryEntryRequest struct {
	CompanyUuid string `protobuf:"bytes,1,opt,name=company_uuid,json=companyUuid,proto3" json:"company_uuid,omitempty"`
	UserUuid    string `protobuf:"bytes,2,opt,name=user_uuid,json=userUuid,proto3" json:"user_uuid,omitempty"`
}

func (*DirectoryEntryRequest) Descriptor

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

func (*DirectoryEntryRequest) Marshal

func (m *DirectoryEntryRequest) Marshal() (dAtA []byte, err error)

func (*DirectoryEntryRequest) MarshalTo

func (m *DirectoryEntryRequest) MarshalTo(dAtA []byte) (int, error)

func (*DirectoryEntryRequest) ProtoMessage

func (*DirectoryEntryRequest) ProtoMessage()

func (*DirectoryEntryRequest) Reset

func (m *DirectoryEntryRequest) Reset()

func (*DirectoryEntryRequest) Size

func (m *DirectoryEntryRequest) Size() (n int)

func (*DirectoryEntryRequest) String

func (m *DirectoryEntryRequest) String() string

func (*DirectoryEntryRequest) Unmarshal

func (m *DirectoryEntryRequest) Unmarshal(dAtA []byte) error

type DirectoryList

type DirectoryList struct {
	Accounts []DirectoryEntry `protobuf:"bytes,1,rep,name=accounts" json:"accounts"`
	Limit    int32            `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset   int32            `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
}

func (*DirectoryList) Descriptor

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

func (*DirectoryList) GetAccounts

func (m *DirectoryList) GetAccounts() []DirectoryEntry

func (*DirectoryList) Marshal

func (m *DirectoryList) Marshal() (dAtA []byte, err error)

func (*DirectoryList) MarshalTo

func (m *DirectoryList) MarshalTo(dAtA []byte) (int, error)

func (*DirectoryList) ProtoMessage

func (*DirectoryList) ProtoMessage()

func (*DirectoryList) Reset

func (m *DirectoryList) Reset()

func (*DirectoryList) Size

func (m *DirectoryList) Size() (n int)

func (*DirectoryList) String

func (m *DirectoryList) String() string

func (*DirectoryList) Unmarshal

func (m *DirectoryList) Unmarshal(dAtA []byte) error

type DirectoryListRequest

type DirectoryListRequest struct {
	CompanyUuid string `protobuf:"bytes,1,opt,name=company_uuid,json=companyUuid,proto3" json:"company_uuid,omitempty"`
	Limit       int32  `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset      int32  `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
}

func (*DirectoryListRequest) Descriptor

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

func (*DirectoryListRequest) Marshal

func (m *DirectoryListRequest) Marshal() (dAtA []byte, err error)

func (*DirectoryListRequest) MarshalTo

func (m *DirectoryListRequest) MarshalTo(dAtA []byte) (int, error)

func (*DirectoryListRequest) ProtoMessage

func (*DirectoryListRequest) ProtoMessage()

func (*DirectoryListRequest) Reset

func (m *DirectoryListRequest) Reset()

func (*DirectoryListRequest) Size

func (m *DirectoryListRequest) Size() (n int)

func (*DirectoryListRequest) String

func (m *DirectoryListRequest) String() string

func (*DirectoryListRequest) Unmarshal

func (m *DirectoryListRequest) Unmarshal(dAtA []byte) error

type GetCompanyRequest

type GetCompanyRequest struct {
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
}

func (*GetCompanyRequest) Descriptor

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

func (*GetCompanyRequest) Marshal

func (m *GetCompanyRequest) Marshal() (dAtA []byte, err error)

func (*GetCompanyRequest) MarshalTo

func (m *GetCompanyRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetCompanyRequest) ProtoMessage

func (*GetCompanyRequest) ProtoMessage()

func (*GetCompanyRequest) Reset

func (m *GetCompanyRequest) Reset()

func (*GetCompanyRequest) Size

func (m *GetCompanyRequest) Size() (n int)

func (*GetCompanyRequest) String

func (m *GetCompanyRequest) String() string

func (*GetCompanyRequest) Unmarshal

func (m *GetCompanyRequest) Unmarshal(dAtA []byte) error

type GetJobRequest

type GetJobRequest struct {
	Uuid        string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	CompanyUuid string `protobuf:"bytes,2,opt,name=company_uuid,json=companyUuid,proto3" json:"company_uuid,omitempty"`
	TeamUuid    string `protobuf:"bytes,3,opt,name=team_uuid,json=teamUuid,proto3" json:"team_uuid,omitempty"`
}

func (*GetJobRequest) Descriptor

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

func (*GetJobRequest) Marshal

func (m *GetJobRequest) Marshal() (dAtA []byte, err error)

func (*GetJobRequest) MarshalTo

func (m *GetJobRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetJobRequest) ProtoMessage

func (*GetJobRequest) ProtoMessage()

func (*GetJobRequest) Reset

func (m *GetJobRequest) Reset()

func (*GetJobRequest) Size

func (m *GetJobRequest) Size() (n int)

func (*GetJobRequest) String

func (m *GetJobRequest) String() string

func (*GetJobRequest) Unmarshal

func (m *GetJobRequest) Unmarshal(dAtA []byte) error

type GetShiftRequest

type GetShiftRequest struct {
	Uuid        string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	TeamUuid    string `protobuf:"bytes,2,opt,name=team_uuid,json=teamUuid,proto3" json:"team_uuid,omitempty"`
	CompanyUuid string `protobuf:"bytes,3,opt,name=company_uuid,json=companyUuid,proto3" json:"company_uuid,omitempty"`
}

func (*GetShiftRequest) Descriptor

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

func (*GetShiftRequest) Marshal

func (m *GetShiftRequest) Marshal() (dAtA []byte, err error)

func (*GetShiftRequest) MarshalTo

func (m *GetShiftRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetShiftRequest) ProtoMessage

func (*GetShiftRequest) ProtoMessage()

func (*GetShiftRequest) Reset

func (m *GetShiftRequest) Reset()

func (*GetShiftRequest) Size

func (m *GetShiftRequest) Size() (n int)

func (*GetShiftRequest) String

func (m *GetShiftRequest) String() string

func (*GetShiftRequest) Unmarshal

func (m *GetShiftRequest) Unmarshal(dAtA []byte) error

type GetTeamRequest

type GetTeamRequest struct {
	CompanyUuid string `protobuf:"bytes,1,opt,name=company_uuid,json=companyUuid,proto3" json:"company_uuid,omitempty"`
	Uuid        string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"`
}

func (*GetTeamRequest) Descriptor

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

func (*GetTeamRequest) Marshal

func (m *GetTeamRequest) Marshal() (dAtA []byte, err error)

func (*GetTeamRequest) MarshalTo

func (m *GetTeamRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetTeamRequest) ProtoMessage

func (*GetTeamRequest) ProtoMessage()

func (*GetTeamRequest) Reset

func (m *GetTeamRequest) Reset()

func (*GetTeamRequest) Size

func (m *GetTeamRequest) Size() (n int)

func (*GetTeamRequest) String

func (m *GetTeamRequest) String() string

func (*GetTeamRequest) Unmarshal

func (m *GetTeamRequest) Unmarshal(dAtA []byte) error

type GrowthGraphRequest

type GrowthGraphRequest struct {
}

func (*GrowthGraphRequest) Descriptor

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

func (*GrowthGraphRequest) Marshal

func (m *GrowthGraphRequest) Marshal() (dAtA []byte, err error)

func (*GrowthGraphRequest) MarshalTo

func (m *GrowthGraphRequest) MarshalTo(dAtA []byte) (int, error)

func (*GrowthGraphRequest) ProtoMessage

func (*GrowthGraphRequest) ProtoMessage()

func (*GrowthGraphRequest) Reset

func (m *GrowthGraphRequest) Reset()

func (*GrowthGraphRequest) Size

func (m *GrowthGraphRequest) Size() (n int)

func (*GrowthGraphRequest) String

func (m *GrowthGraphRequest) String() string

func (*GrowthGraphRequest) Unmarshal

func (m *GrowthGraphRequest) Unmarshal(dAtA []byte) error

type GrowthGraphResponse

type GrowthGraphResponse struct {
	PeopleScheduledPerWeek map[string]int32 `` /* 213-byte string literal not displayed */
	PeopleOnShifts         int32            `protobuf:"varint,2,opt,name=people_on_shifts,json=peopleOnShifts,proto3" json:"people_on_shifts,omitempty"`
}

func (*GrowthGraphResponse) Descriptor

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

func (*GrowthGraphResponse) GetPeopleScheduledPerWeek

func (m *GrowthGraphResponse) GetPeopleScheduledPerWeek() map[string]int32

func (*GrowthGraphResponse) Marshal

func (m *GrowthGraphResponse) Marshal() (dAtA []byte, err error)

func (*GrowthGraphResponse) MarshalTo

func (m *GrowthGraphResponse) MarshalTo(dAtA []byte) (int, error)

func (*GrowthGraphResponse) ProtoMessage

func (*GrowthGraphResponse) ProtoMessage()

func (*GrowthGraphResponse) Reset

func (m *GrowthGraphResponse) Reset()

func (*GrowthGraphResponse) Size

func (m *GrowthGraphResponse) Size() (n int)

func (*GrowthGraphResponse) String

func (m *GrowthGraphResponse) String() string

func (*GrowthGraphResponse) Unmarshal

func (m *GrowthGraphResponse) Unmarshal(dAtA []byte) error

type Job

type Job struct {
	Uuid        string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty" db:"uuid"`
	CompanyUuid string `protobuf:"bytes,2,opt,name=company_uuid,json=companyUuid,proto3" json:"company_uuid,omitempty" db:"-"`
	TeamUuid    string `protobuf:"bytes,3,opt,name=team_uuid,json=teamUuid,proto3" json:"team_uuid,omitempty" db:"team_uuid"`
	Name        string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty" db:"name"`
	Archived    bool   `protobuf:"varint,5,opt,name=archived,proto3" json:"archived,omitempty" db:"archived"`
	Color       string `protobuf:"bytes,6,opt,name=color,proto3" json:"color,omitempty" db:"color"`
}

func (*Job) Descriptor

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

func (*Job) Marshal

func (m *Job) Marshal() (dAtA []byte, err error)

func (*Job) MarshalTo

func (m *Job) MarshalTo(dAtA []byte) (int, error)

func (*Job) ProtoMessage

func (*Job) ProtoMessage()

func (*Job) Reset

func (m *Job) Reset()

func (*Job) Size

func (m *Job) Size() (n int)

func (*Job) String

func (m *Job) String() string

func (*Job) Unmarshal

func (m *Job) Unmarshal(dAtA []byte) error

type JobList

type JobList struct {
	Jobs []Job `protobuf:"bytes,1,rep,name=jobs" json:"jobs"`
}

func (*JobList) Descriptor

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

func (*JobList) GetJobs

func (m *JobList) GetJobs() []Job

func (*JobList) Marshal

func (m *JobList) Marshal() (dAtA []byte, err error)

func (*JobList) MarshalTo

func (m *JobList) MarshalTo(dAtA []byte) (int, error)

func (*JobList) ProtoMessage

func (*JobList) ProtoMessage()

func (*JobList) Reset

func (m *JobList) Reset()

func (*JobList) Size

func (m *JobList) Size() (n int)

func (*JobList) String

func (m *JobList) String() string

func (*JobList) Unmarshal

func (m *JobList) Unmarshal(dAtA []byte) error

type JobListRequest

type JobListRequest struct {
	CompanyUuid string `protobuf:"bytes,1,opt,name=company_uuid,json=companyUuid,proto3" json:"company_uuid,omitempty"`
	TeamUuid    string `protobuf:"bytes,2,opt,name=team_uuid,json=teamUuid,proto3" json:"team_uuid,omitempty"`
}

func (*JobListRequest) Descriptor

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

func (*JobListRequest) Marshal

func (m *JobListRequest) Marshal() (dAtA []byte, err error)

func (*JobListRequest) MarshalTo

func (m *JobListRequest) MarshalTo(dAtA []byte) (int, error)

func (*JobListRequest) ProtoMessage

func (*JobListRequest) ProtoMessage()

func (*JobListRequest) Reset

func (m *JobListRequest) Reset()

func (*JobListRequest) Size

func (m *JobListRequest) Size() (n int)

func (*JobListRequest) String

func (m *JobListRequest) String() string

func (*JobListRequest) Unmarshal

func (m *JobListRequest) Unmarshal(dAtA []byte) error

type NewDirectoryEntry

type NewDirectoryEntry struct {
	CompanyUuid string `protobuf:"bytes,1,opt,name=company_uuid,json=companyUuid,proto3" json:"company_uuid,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Email       string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Phonenumber string `protobuf:"bytes,4,opt,name=phonenumber,proto3" json:"phonenumber,omitempty"`
	InternalId  string `protobuf:"bytes,5,opt,name=internal_id,json=internalId,proto3" json:"internal_id,omitempty"`
}

func (*NewDirectoryEntry) Descriptor

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

func (*NewDirectoryEntry) Marshal

func (m *NewDirectoryEntry) Marshal() (dAtA []byte, err error)

func (*NewDirectoryEntry) MarshalTo

func (m *NewDirectoryEntry) MarshalTo(dAtA []byte) (int, error)

func (*NewDirectoryEntry) ProtoMessage

func (*NewDirectoryEntry) ProtoMessage()

func (*NewDirectoryEntry) Reset

func (m *NewDirectoryEntry) Reset()

func (*NewDirectoryEntry) Size

func (m *NewDirectoryEntry) Size() (n int)

func (*NewDirectoryEntry) String

func (m *NewDirectoryEntry) String() string

func (*NewDirectoryEntry) Unmarshal

func (m *NewDirectoryEntry) Unmarshal(dAtA []byte) error

type ScheduledPerWeek

type ScheduledPerWeek struct {
	Week  string `protobuf:"bytes,1,opt,name=week,proto3" json:"week,omitempty"`
	Count int32  `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
}

func (*ScheduledPerWeek) Descriptor

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

func (*ScheduledPerWeek) Marshal

func (m *ScheduledPerWeek) Marshal() (dAtA []byte, err error)

func (*ScheduledPerWeek) MarshalTo

func (m *ScheduledPerWeek) MarshalTo(dAtA []byte) (int, error)

func (*ScheduledPerWeek) ProtoMessage

func (*ScheduledPerWeek) ProtoMessage()

func (*ScheduledPerWeek) Reset

func (m *ScheduledPerWeek) Reset()

func (*ScheduledPerWeek) Size

func (m *ScheduledPerWeek) Size() (n int)

func (*ScheduledPerWeek) String

func (m *ScheduledPerWeek) String() string

func (*ScheduledPerWeek) Unmarshal

func (m *ScheduledPerWeek) Unmarshal(dAtA []byte) error

type Shift

type Shift struct {
	Uuid        string    `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty" db:"uuid"`
	CompanyUuid string    `protobuf:"bytes,2,opt,name=company_uuid,json=companyUuid,proto3" json:"company_uuid,omitempty" db:"-"`
	TeamUuid    string    `protobuf:"bytes,3,opt,name=team_uuid,json=teamUuid,proto3" json:"team_uuid,omitempty" db:"team_uuid"`
	Start       time.Time `protobuf:"bytes,4,opt,name=start,stdtime" json:"start" db:"start"`
	Stop        time.Time `protobuf:"bytes,5,opt,name=stop,stdtime" json:"stop" db:"stop"`
	UserUuid    string    `protobuf:"bytes,6,opt,name=user_uuid,json=userUuid,proto3" json:"user_uuid,omitempty" db:"user_uuid"`
	JobUuid     string    `protobuf:"bytes,7,opt,name=job_uuid,json=jobUuid,proto3" json:"job_uuid,omitempty" db:"job_uuid"`
	Published   bool      `protobuf:"varint,8,opt,name=published,proto3" json:"published,omitempty" db:"published"`
}

func (*Shift) Descriptor

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

func (*Shift) GetStart

func (m *Shift) GetStart() time.Time

func (*Shift) GetStop

func (m *Shift) GetStop() time.Time

func (*Shift) Marshal

func (m *Shift) Marshal() (dAtA []byte, err error)

func (*Shift) MarshalTo

func (m *Shift) MarshalTo(dAtA []byte) (int, error)

func (*Shift) ProtoMessage

func (*Shift) ProtoMessage()

func (*Shift) Reset

func (m *Shift) Reset()

func (*Shift) Size

func (m *Shift) Size() (n int)

func (*Shift) String

func (m *Shift) String() string

func (*Shift) Unmarshal

func (m *Shift) Unmarshal(dAtA []byte) error

type ShiftList

type ShiftList struct {
	Shifts           []Shift   `protobuf:"bytes,1,rep,name=shifts" json:"shifts"`
	ShiftStartAfter  time.Time `protobuf:"bytes,2,opt,name=shift_start_after,json=shiftStartAfter,stdtime" json:"shift_start_after"`
	ShiftStartBefore time.Time `protobuf:"bytes,3,opt,name=shift_start_before,json=shiftStartBefore,stdtime" json:"shift_start_before"`
}

func (*ShiftList) Descriptor

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

func (*ShiftList) GetShiftStartAfter

func (m *ShiftList) GetShiftStartAfter() time.Time

func (*ShiftList) GetShiftStartBefore

func (m *ShiftList) GetShiftStartBefore() time.Time

func (*ShiftList) GetShifts

func (m *ShiftList) GetShifts() []Shift

func (*ShiftList) Marshal

func (m *ShiftList) Marshal() (dAtA []byte, err error)

func (*ShiftList) MarshalTo

func (m *ShiftList) MarshalTo(dAtA []byte) (int, error)

func (*ShiftList) ProtoMessage

func (*ShiftList) ProtoMessage()

func (*ShiftList) Reset

func (m *ShiftList) Reset()

func (*ShiftList) Size

func (m *ShiftList) Size() (n int)

func (*ShiftList) String

func (m *ShiftList) String() string

func (*ShiftList) Unmarshal

func (m *ShiftList) Unmarshal(dAtA []byte) error

type ShiftListRequest

type ShiftListRequest struct {
	CompanyUuid      string `protobuf:"bytes,1,opt,name=company_uuid,json=companyUuid,proto3" json:"company_uuid,omitempty"`
	TeamUuid         string `protobuf:"bytes,2,opt,name=team_uuid,json=teamUuid,proto3" json:"team_uuid,omitempty"`
	UserUuid         string `protobuf:"bytes,3,opt,name=user_uuid,json=userUuid,proto3" json:"user_uuid,omitempty"`
	JobUuid          string `protobuf:"bytes,4,opt,name=job_uuid,json=jobUuid,proto3" json:"job_uuid,omitempty"`
	ShiftStartAfter  string `protobuf:"bytes,5,opt,name=shift_start_after,json=shiftStartAfter,proto3" json:"shift_start_after,omitempty"`
	ShiftStartBefore string `protobuf:"bytes,6,opt,name=shift_start_before,json=shiftStartBefore,proto3" json:"shift_start_before,omitempty"`
}

func (*ShiftListRequest) Descriptor

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

func (*ShiftListRequest) Marshal

func (m *ShiftListRequest) Marshal() (dAtA []byte, err error)

func (*ShiftListRequest) MarshalTo

func (m *ShiftListRequest) MarshalTo(dAtA []byte) (int, error)

func (*ShiftListRequest) ProtoMessage

func (*ShiftListRequest) ProtoMessage()

func (*ShiftListRequest) Reset

func (m *ShiftListRequest) Reset()

func (*ShiftListRequest) Size

func (m *ShiftListRequest) Size() (n int)

func (*ShiftListRequest) String

func (m *ShiftListRequest) String() string

func (*ShiftListRequest) Unmarshal

func (m *ShiftListRequest) Unmarshal(dAtA []byte) error

type Team

type Team struct {
	Uuid          string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty" db:"uuid"`
	CompanyUuid   string `protobuf:"bytes,2,opt,name=company_uuid,json=companyUuid,proto3" json:"company_uuid,omitempty" db:"company_uuid"`
	Name          string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty" db:"name"`
	Archived      bool   `protobuf:"varint,4,opt,name=archived,proto3" json:"archived,omitempty" db:"archived"`
	Timezone      string `protobuf:"bytes,5,opt,name=timezone,proto3" json:"timezone,omitempty" db:"timezone"`
	DayWeekStarts string `protobuf:"bytes,6,opt,name=day_week_starts,json=dayWeekStarts,proto3" json:"day_week_starts,omitempty" db:"day_week_starts"`
	Color         string `protobuf:"bytes,7,opt,name=color,proto3" json:"color,omitempty" db:"color"`
}

func (*Team) Descriptor

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

func (*Team) Marshal

func (m *Team) Marshal() (dAtA []byte, err error)

func (*Team) MarshalTo

func (m *Team) MarshalTo(dAtA []byte) (int, error)

func (*Team) ProtoMessage

func (*Team) ProtoMessage()

func (*Team) Reset

func (m *Team) Reset()

func (*Team) Size

func (m *Team) Size() (n int)

func (*Team) String

func (m *Team) String() string

func (*Team) Unmarshal

func (m *Team) Unmarshal(dAtA []byte) error

type TeamList

type TeamList struct {
	Teams []Team `protobuf:"bytes,1,rep,name=teams" json:"teams"`
}

func (*TeamList) Descriptor

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

func (*TeamList) GetTeams

func (m *TeamList) GetTeams() []Team

func (*TeamList) Marshal

func (m *TeamList) Marshal() (dAtA []byte, err error)

func (*TeamList) MarshalTo

func (m *TeamList) MarshalTo(dAtA []byte) (int, error)

func (*TeamList) ProtoMessage

func (*TeamList) ProtoMessage()

func (*TeamList) Reset

func (m *TeamList) Reset()

func (*TeamList) Size

func (m *TeamList) Size() (n int)

func (*TeamList) String

func (m *TeamList) String() string

func (*TeamList) Unmarshal

func (m *TeamList) Unmarshal(dAtA []byte) error

type TeamListRequest

type TeamListRequest struct {
	CompanyUuid string `protobuf:"bytes,1,opt,name=company_uuid,json=companyUuid,proto3" json:"company_uuid,omitempty"`
}

func (*TeamListRequest) Descriptor

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

func (*TeamListRequest) Marshal

func (m *TeamListRequest) Marshal() (dAtA []byte, err error)

func (*TeamListRequest) MarshalTo

func (m *TeamListRequest) MarshalTo(dAtA []byte) (int, error)

func (*TeamListRequest) ProtoMessage

func (*TeamListRequest) ProtoMessage()

func (*TeamListRequest) Reset

func (m *TeamListRequest) Reset()

func (*TeamListRequest) Size

func (m *TeamListRequest) Size() (n int)

func (*TeamListRequest) String

func (m *TeamListRequest) String() string

func (*TeamListRequest) Unmarshal

func (m *TeamListRequest) Unmarshal(dAtA []byte) error

type TimeZoneList

type TimeZoneList struct {
	Timezones []string `protobuf:"bytes,1,rep,name=timezones" json:"timezones,omitempty"`
}

func (*TimeZoneList) Descriptor

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

func (*TimeZoneList) Marshal

func (m *TimeZoneList) Marshal() (dAtA []byte, err error)

func (*TimeZoneList) MarshalTo

func (m *TimeZoneList) MarshalTo(dAtA []byte) (int, error)

func (*TimeZoneList) ProtoMessage

func (*TimeZoneList) ProtoMessage()

func (*TimeZoneList) Reset

func (m *TimeZoneList) Reset()

func (*TimeZoneList) Size

func (m *TimeZoneList) Size() (n int)

func (*TimeZoneList) String

func (m *TimeZoneList) String() string

func (*TimeZoneList) Unmarshal

func (m *TimeZoneList) Unmarshal(dAtA []byte) error

type TimeZoneListRequest

type TimeZoneListRequest struct {
}

func (*TimeZoneListRequest) Descriptor

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

func (*TimeZoneListRequest) Marshal

func (m *TimeZoneListRequest) Marshal() (dAtA []byte, err error)

func (*TimeZoneListRequest) MarshalTo

func (m *TimeZoneListRequest) MarshalTo(dAtA []byte) (int, error)

func (*TimeZoneListRequest) ProtoMessage

func (*TimeZoneListRequest) ProtoMessage()

func (*TimeZoneListRequest) Reset

func (m *TimeZoneListRequest) Reset()

func (*TimeZoneListRequest) Size

func (m *TimeZoneListRequest) Size() (n int)

func (*TimeZoneListRequest) String

func (m *TimeZoneListRequest) String() string

func (*TimeZoneListRequest) Unmarshal

func (m *TimeZoneListRequest) Unmarshal(dAtA []byte) error

type Worker

type Worker struct {
	CompanyUuid string `protobuf:"bytes,1,opt,name=company_uuid,json=companyUuid,proto3" json:"company_uuid,omitempty"`
	TeamUuid    string `protobuf:"bytes,2,opt,name=team_uuid,json=teamUuid,proto3" json:"team_uuid,omitempty"`
	UserUuid    string `protobuf:"bytes,3,opt,name=user_uuid,json=userUuid,proto3" json:"user_uuid,omitempty"`
}

func (*Worker) Descriptor

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

func (*Worker) Marshal

func (m *Worker) Marshal() (dAtA []byte, err error)

func (*Worker) MarshalTo

func (m *Worker) MarshalTo(dAtA []byte) (int, error)

func (*Worker) ProtoMessage

func (*Worker) ProtoMessage()

func (*Worker) Reset

func (m *Worker) Reset()

func (*Worker) Size

func (m *Worker) Size() (n int)

func (*Worker) String

func (m *Worker) String() string

func (*Worker) Unmarshal

func (m *Worker) Unmarshal(dAtA []byte) error

type WorkerListRequest

type WorkerListRequest struct {
	CompanyUuid string `protobuf:"bytes,1,opt,name=company_uuid,json=companyUuid,proto3" json:"company_uuid,omitempty"`
	TeamUuid    string `protobuf:"bytes,2,opt,name=team_uuid,json=teamUuid,proto3" json:"team_uuid,omitempty"`
}

workers

func (*WorkerListRequest) Descriptor

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

func (*WorkerListRequest) Marshal

func (m *WorkerListRequest) Marshal() (dAtA []byte, err error)

func (*WorkerListRequest) MarshalTo

func (m *WorkerListRequest) MarshalTo(dAtA []byte) (int, error)

func (*WorkerListRequest) ProtoMessage

func (*WorkerListRequest) ProtoMessage()

func (*WorkerListRequest) Reset

func (m *WorkerListRequest) Reset()

func (*WorkerListRequest) Size

func (m *WorkerListRequest) Size() (n int)

func (*WorkerListRequest) String

func (m *WorkerListRequest) String() string

func (*WorkerListRequest) Unmarshal

func (m *WorkerListRequest) Unmarshal(dAtA []byte) error

type WorkerOfList

type WorkerOfList struct {
	UserUuid string `protobuf:"bytes,1,opt,name=user_uuid,json=userUuid,proto3" json:"user_uuid,omitempty"`
	Teams    []Team `protobuf:"bytes,2,rep,name=teams" json:"teams"`
}

func (*WorkerOfList) Descriptor

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

func (*WorkerOfList) GetTeams

func (m *WorkerOfList) GetTeams() []Team

func (*WorkerOfList) Marshal

func (m *WorkerOfList) Marshal() (dAtA []byte, err error)

func (*WorkerOfList) MarshalTo

func (m *WorkerOfList) MarshalTo(dAtA []byte) (int, error)

func (*WorkerOfList) ProtoMessage

func (*WorkerOfList) ProtoMessage()

func (*WorkerOfList) Reset

func (m *WorkerOfList) Reset()

func (*WorkerOfList) Size

func (m *WorkerOfList) Size() (n int)

func (*WorkerOfList) String

func (m *WorkerOfList) String() string

func (*WorkerOfList) Unmarshal

func (m *WorkerOfList) Unmarshal(dAtA []byte) error

type WorkerOfRequest

type WorkerOfRequest struct {
	UserUuid string `protobuf:"bytes,1,opt,name=user_uuid,json=userUuid,proto3" json:"user_uuid,omitempty"`
}

func (*WorkerOfRequest) Descriptor

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

func (*WorkerOfRequest) Marshal

func (m *WorkerOfRequest) Marshal() (dAtA []byte, err error)

func (*WorkerOfRequest) MarshalTo

func (m *WorkerOfRequest) MarshalTo(dAtA []byte) (int, error)

func (*WorkerOfRequest) ProtoMessage

func (*WorkerOfRequest) ProtoMessage()

func (*WorkerOfRequest) Reset

func (m *WorkerOfRequest) Reset()

func (*WorkerOfRequest) Size

func (m *WorkerOfRequest) Size() (n int)

func (*WorkerOfRequest) String

func (m *WorkerOfRequest) String() string

func (*WorkerOfRequest) Unmarshal

func (m *WorkerOfRequest) Unmarshal(dAtA []byte) error

type WorkerShiftListRequest

type WorkerShiftListRequest struct {
	CompanyUuid      string    `protobuf:"bytes,1,opt,name=company_uuid,json=companyUuid,proto3" json:"company_uuid,omitempty"`
	TeamUuid         string    `protobuf:"bytes,2,opt,name=team_uuid,json=teamUuid,proto3" json:"team_uuid,omitempty"`
	WorkerUuid       string    `protobuf:"bytes,3,opt,name=worker_uuid,json=workerUuid,proto3" json:"worker_uuid,omitempty"`
	ShiftStartAfter  time.Time `protobuf:"bytes,4,opt,name=shift_start_after,json=shiftStartAfter,stdtime" json:"shift_start_after"`
	ShiftStartBefore time.Time `protobuf:"bytes,5,opt,name=shift_start_before,json=shiftStartBefore,stdtime" json:"shift_start_before"`
}

func (*WorkerShiftListRequest) Descriptor

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

func (*WorkerShiftListRequest) GetShiftStartAfter

func (m *WorkerShiftListRequest) GetShiftStartAfter() time.Time

func (*WorkerShiftListRequest) GetShiftStartBefore

func (m *WorkerShiftListRequest) GetShiftStartBefore() time.Time

func (*WorkerShiftListRequest) Marshal

func (m *WorkerShiftListRequest) Marshal() (dAtA []byte, err error)

func (*WorkerShiftListRequest) MarshalTo

func (m *WorkerShiftListRequest) MarshalTo(dAtA []byte) (int, error)

func (*WorkerShiftListRequest) ProtoMessage

func (*WorkerShiftListRequest) ProtoMessage()

func (*WorkerShiftListRequest) Reset

func (m *WorkerShiftListRequest) Reset()

func (*WorkerShiftListRequest) Size

func (m *WorkerShiftListRequest) Size() (n int)

func (*WorkerShiftListRequest) String

func (m *WorkerShiftListRequest) String() string

func (*WorkerShiftListRequest) Unmarshal

func (m *WorkerShiftListRequest) Unmarshal(dAtA []byte) error

type Workers

type Workers struct {
	CompanyUuid string           `protobuf:"bytes,1,opt,name=company_uuid,json=companyUuid,proto3" json:"company_uuid,omitempty"`
	TeamUuid    string           `protobuf:"bytes,2,opt,name=team_uuid,json=teamUuid,proto3" json:"team_uuid,omitempty"`
	Workers     []DirectoryEntry `protobuf:"bytes,3,rep,name=workers" json:"workers"`
}

func (*Workers) Descriptor

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

func (*Workers) GetWorkers

func (m *Workers) GetWorkers() []DirectoryEntry

func (*Workers) Marshal

func (m *Workers) Marshal() (dAtA []byte, err error)

func (*Workers) MarshalTo

func (m *Workers) MarshalTo(dAtA []byte) (int, error)

func (*Workers) ProtoMessage

func (*Workers) ProtoMessage()

func (*Workers) Reset

func (m *Workers) Reset()

func (*Workers) Size

func (m *Workers) Size() (n int)

func (*Workers) String

func (m *Workers) String() string

func (*Workers) Unmarshal

func (m *Workers) Unmarshal(dAtA []byte) error

Directories

Path Synopsis
Package company is a generated protocol buffer package.
Package company is a generated protocol buffer package.
Package main implements a gRPC server that handles Staffjoy accounts.
Package main implements a gRPC server that handles Staffjoy accounts.

Jump to

Keyboard shortcuts

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