core

package
v0.0.0-...-176f8cf Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package core is a generated protocol buffer package.

It is generated from these files:

core.proto

It has these top-level messages:

UserAccount
Event
Location
EventParticipant
Friend
Group
FriendRequest
FacebookAccessToken

Index

Constants

This section is empty.

Variables

View Source
var AccountProviderType_name = map[int32]string{
	0: "UNKNOWN",
	1: "FACEBOOK",
}
View Source
var AccountProviderType_value = map[string]int32{
	"UNKNOWN":  0,
	"FACEBOOK": 1,
}
View Source
var AttendanceResponse_name = map[int32]string{
	0: "NO_RESPONSE",
	1: "NO_ASSIST",
	2: "CANNOT_ASSIST",
	3: "ASSIST",
}
View Source
var AttendanceResponse_value = map[string]int32{
	"NO_RESPONSE":   0,
	"NO_ASSIST":     1,
	"CANNOT_ASSIST": 2,
	"ASSIST":        3,
}
View Source
var EventState_name = map[int32]string{
	0: "NOT_STARTED",
	1: "ONGOING",
	2: "FINISHED",
	3: "CANCELLED",
}
View Source
var EventState_value = map[string]int32{
	"NOT_STARTED": 0,
	"ONGOING":     1,
	"FINISHED":    2,
	"CANCELLED":   3,
}
View Source
var InvitationStatus_name = map[int32]string{
	0: "NO_DELIVERED",
	1: "SERVER_DELIVERED",
	2: "CLIENT_DELIVERED",
}
View Source
var InvitationStatus_value = map[string]int32{
	"NO_DELIVERED":     0,
	"SERVER_DELIVERED": 1,
	"CLIENT_DELIVERED": 2,
}
View Source
var SyncBehaviour_name = map[int32]string{
	0: "TRUNCATE",
	1: "PRESERVE",
}
View Source
var SyncBehaviour_value = map[string]int32{
	"TRUNCATE": 0,
	"PRESERVE": 1,
}

Functions

This section is empty.

Types

type AccountProviderType

type AccountProviderType int32
const (
	AccountProviderType_UNKNOWN  AccountProviderType = 0
	AccountProviderType_FACEBOOK AccountProviderType = 1
)

func (AccountProviderType) EnumDescriptor

func (AccountProviderType) EnumDescriptor() ([]byte, []int)

func (AccountProviderType) String

func (x AccountProviderType) String() string

type AttendanceResponse

type AttendanceResponse int32
const (
	AttendanceResponse_NO_RESPONSE   AttendanceResponse = 0
	AttendanceResponse_NO_ASSIST     AttendanceResponse = 1
	AttendanceResponse_CANNOT_ASSIST AttendanceResponse = 2
	AttendanceResponse_ASSIST        AttendanceResponse = 3
)

func (AttendanceResponse) EnumDescriptor

func (AttendanceResponse) EnumDescriptor() ([]byte, []int)

func (AttendanceResponse) String

func (x AttendanceResponse) String() string

type Event

type Event struct {
	EventId       int64                       `protobuf:"varint,1,opt,name=event_id,json=eventId" json:"event_id,omitempty"`
	AuthorId      int64                       `protobuf:"varint,2,opt,name=author_id,json=authorId" json:"author_id,omitempty"`
	AuthorName    string                      `protobuf:"bytes,3,opt,name=author_name,json=authorName" json:"author_name,omitempty"`
	StartDate     int64                       `protobuf:"varint,4,opt,name=start_date,json=startDate" json:"start_date,omitempty"`
	EndDate       int64                       `protobuf:"varint,5,opt,name=end_date,json=endDate" json:"end_date,omitempty"`
	Message       string                      `protobuf:"bytes,6,opt,name=message" json:"message,omitempty"`
	IsPublic      bool                        `protobuf:"varint,7,opt,name=is_public,json=isPublic" json:"is_public,omitempty"`
	Geolocation   *Location                   `protobuf:"bytes,8,opt,name=geolocation" json:"geolocation,omitempty"`
	NumAttendees  int32                       `protobuf:"varint,9,opt,name=num_attendees,json=numAttendees" json:"num_attendees,omitempty"`
	NumGuests     int32                       `protobuf:"varint,10,opt,name=num_guests,json=numGuests" json:"num_guests,omitempty"`
	CreatedDate   int64                       `protobuf:"varint,11,opt,name=created_date,json=createdDate" json:"created_date,omitempty"`
	Participants  map[int64]*EventParticipant `` /* 146-byte string literal not displayed */
	InboxPosition int64                       `protobuf:"varint,13,opt,name=inbox_position,json=inboxPosition" json:"inbox_position,omitempty"`
	State         EventState                  `protobuf:"varint,14,opt,name=state,enum=core.EventState" json:"state,omitempty"`
	PictureDigest []byte                      `protobuf:"bytes,15,opt,name=picture_digest,json=pictureDigest,proto3" json:"picture_digest,omitempty"`
}

func (*Event) Descriptor

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

func (*Event) GetGeolocation

func (m *Event) GetGeolocation() *Location

func (*Event) GetParticipants

func (m *Event) GetParticipants() map[int64]*EventParticipant

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) String

func (m *Event) String() string

type EventParticipant

type EventParticipant struct {
	UserId    int64              `protobuf:"varint,1,opt,name=user_id,json=userId" json:"user_id,omitempty"`
	Name      string             `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Response  AttendanceResponse `protobuf:"varint,3,opt,name=response,enum=core.AttendanceResponse" json:"response,omitempty"`
	Delivered InvitationStatus   `protobuf:"varint,4,opt,name=delivered,enum=core.InvitationStatus" json:"delivered,omitempty"`
}

func (*EventParticipant) Descriptor

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

func (*EventParticipant) ProtoMessage

func (*EventParticipant) ProtoMessage()

func (*EventParticipant) Reset

func (m *EventParticipant) Reset()

func (*EventParticipant) String

func (m *EventParticipant) String() string

type EventState

type EventState int32
const (
	EventState_NOT_STARTED EventState = 0
	EventState_ONGOING     EventState = 1
	EventState_FINISHED    EventState = 2
	EventState_CANCELLED   EventState = 3
)

func (EventState) EnumDescriptor

func (EventState) EnumDescriptor() ([]byte, []int)

func (EventState) String

func (x EventState) String() string

type FacebookAccessToken

type FacebookAccessToken struct {
	AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken" json:"access_token,omitempty"`
}

func (*FacebookAccessToken) Descriptor

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

func (*FacebookAccessToken) ProtoMessage

func (*FacebookAccessToken) ProtoMessage()

func (*FacebookAccessToken) Reset

func (m *FacebookAccessToken) Reset()

func (*FacebookAccessToken) String

func (m *FacebookAccessToken) String() string

type Friend

type Friend struct {
	UserId        int64  `protobuf:"varint,1,opt,name=user_id,json=userId" json:"user_id,omitempty"`
	Name          string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	PictureDigest []byte `protobuf:"bytes,3,opt,name=picture_digest,json=pictureDigest,proto3" json:"picture_digest,omitempty"`
}

func (*Friend) Descriptor

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

func (*Friend) ProtoMessage

func (*Friend) ProtoMessage()

func (*Friend) Reset

func (m *Friend) Reset()

func (*Friend) String

func (m *Friend) String() string

type FriendRequest

type FriendRequest struct {
	FriendId    int64  `protobuf:"varint,1,opt,name=friend_id,json=friendId" json:"friend_id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Email       string `protobuf:"bytes,3,opt,name=email" json:"email,omitempty"`
	CreatedDate int64  `protobuf:"varint,4,opt,name=created_date,json=createdDate" json:"created_date,omitempty"`
}

func (*FriendRequest) Descriptor

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

func (*FriendRequest) ProtoMessage

func (*FriendRequest) ProtoMessage()

func (*FriendRequest) Reset

func (m *FriendRequest) Reset()

func (*FriendRequest) String

func (m *FriendRequest) String() string

type Group

type Group struct {
	Id      int32   `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	Name    string  `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Size    int32   `protobuf:"varint,3,opt,name=size" json:"size,omitempty"`
	Members []int64 `protobuf:"varint,4,rep,packed,name=members" json:"members,omitempty"`
}

func (*Group) Descriptor

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

func (*Group) ProtoMessage

func (*Group) ProtoMessage()

func (*Group) Reset

func (m *Group) Reset()

func (*Group) String

func (m *Group) String() string

type InvitationStatus

type InvitationStatus int32
const (
	InvitationStatus_NO_DELIVERED     InvitationStatus = 0
	InvitationStatus_SERVER_DELIVERED InvitationStatus = 1
	InvitationStatus_CLIENT_DELIVERED InvitationStatus = 2
)

func (InvitationStatus) EnumDescriptor

func (InvitationStatus) EnumDescriptor() ([]byte, []int)

func (InvitationStatus) String

func (x InvitationStatus) String() string

type Location

type Location struct {
	Latitude  float32 `protobuf:"fixed32,1,opt,name=latitude" json:"latitude,omitempty"`
	Longitude float32 `protobuf:"fixed32,2,opt,name=longitude" json:"longitude,omitempty"`
}

func (*Location) Descriptor

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

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) Reset

func (m *Location) Reset()

func (*Location) String

func (m *Location) String() string

type SyncBehaviour

type SyncBehaviour int32
const (
	// Previous groups are removed and new ones are added.
	SyncBehaviour_TRUNCATE SyncBehaviour = 0
	// Previous groups are updated, new ones are added
	SyncBehaviour_PRESERVE SyncBehaviour = 1
)

func (SyncBehaviour) EnumDescriptor

func (SyncBehaviour) EnumDescriptor() ([]byte, []int)

func (SyncBehaviour) String

func (x SyncBehaviour) String() string

type UserAccount

type UserAccount struct {
	Name          string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Email         string `protobuf:"bytes,2,opt,name=email" json:"email,omitempty"`
	Picture       []byte `protobuf:"bytes,3,opt,name=picture,proto3" json:"picture,omitempty"`
	PictureDigest []byte `protobuf:"bytes,4,opt,name=picture_digest,json=pictureDigest,proto3" json:"picture_digest,omitempty"`
	FbId          string `protobuf:"bytes,5,opt,name=fbId" json:"fbId,omitempty"`
}

func (*UserAccount) Descriptor

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

func (*UserAccount) ProtoMessage

func (*UserAccount) ProtoMessage()

func (*UserAccount) Reset

func (m *UserAccount) Reset()

func (*UserAccount) String

func (m *UserAccount) String() string

Jump to

Keyboard shortcuts

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