Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) CheckNotified(spaceID string, status SpaceNotificationStatus) (bool, error)
- func (c *Client) Close() error
- func (c *Client) GetNotifiedStatus(spaceID string) (SpaceNotificationStatus, error)
- func (c *Client) RegisterSchedule(spaceID, creatorID, screenName, title string, ...) error
- func (c *Client) RegisterScheduleRemind(spaceID, creatorID, screenName, title string, ...) error
- func (c *Client) RegisterStart(spaceID, creatorID, screenName, title string, startedAt, createdAt time.Time) error
- type Space
- func (*Space) Descriptor() ([]byte, []int)deprecated
- func (x *Space) GetCreatedAt() *timestamppb.Timestamp
- func (x *Space) GetCreatorId() string
- func (x *Space) GetId() string
- func (x *Space) GetNotificationStatus() SpaceNotificationStatus
- func (x *Space) GetScheduledStart() *timestamppb.Timestamp
- func (x *Space) GetScreenName() string
- func (x *Space) GetStartedAt() *timestamppb.Timestamp
- func (x *Space) GetTitle() string
- func (*Space) ProtoMessage()
- func (x *Space) ProtoReflect() protoreflect.Message
- func (x *Space) Reset()
- func (x *Space) String() string
- type SpaceNotificationStatus
- func (SpaceNotificationStatus) Descriptor() protoreflect.EnumDescriptor
- func (x SpaceNotificationStatus) Enum() *SpaceNotificationStatus
- func (SpaceNotificationStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x SpaceNotificationStatus) Number() protoreflect.EnumNumber
- func (x SpaceNotificationStatus) String() string
- func (SpaceNotificationStatus) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SpaceNotificationStatus_name = map[int32]string{ 0: "NONE", 1: "SCHEDULE", 2: "SCHEDULE_REMIND", 3: "START", } SpaceNotificationStatus_value = map[string]int32{ "NONE": 0, "SCHEDULE": 1, "SCHEDULE_REMIND": 2, "START": 3, } )
Enum value maps for SpaceNotificationStatus.
View Source
var File_db_record_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CheckNotified ¶
func (c *Client) CheckNotified(spaceID string, status SpaceNotificationStatus) (bool, error)
func (*Client) GetNotifiedStatus ¶
func (c *Client) GetNotifiedStatus(spaceID string) (SpaceNotificationStatus, error)
func (*Client) RegisterSchedule ¶
func (*Client) RegisterScheduleRemind ¶
type Space ¶
type Space struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` CreatorId string `protobuf:"bytes,2,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"` ScreenName string `protobuf:"bytes,3,opt,name=screen_name,json=screenName,proto3" json:"screen_name,omitempty"` Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` NotificationStatus SpaceNotificationStatus `` /* 148-byte string literal not displayed */ ScheduledStart *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=scheduled_start,json=scheduledStart,proto3" json:"scheduled_start,omitempty"` StartedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*Space) Descriptor
deprecated
func (*Space) GetCreatedAt ¶
func (x *Space) GetCreatedAt() *timestamppb.Timestamp
func (*Space) GetCreatorId ¶
func (*Space) GetNotificationStatus ¶
func (x *Space) GetNotificationStatus() SpaceNotificationStatus
func (*Space) GetScheduledStart ¶
func (x *Space) GetScheduledStart() *timestamppb.Timestamp
func (*Space) GetScreenName ¶
func (*Space) GetStartedAt ¶
func (x *Space) GetStartedAt() *timestamppb.Timestamp
func (*Space) ProtoMessage ¶
func (*Space) ProtoMessage()
func (*Space) ProtoReflect ¶
func (x *Space) ProtoReflect() protoreflect.Message
type SpaceNotificationStatus ¶
type SpaceNotificationStatus int32
const ( SpaceNotificationStatus_NONE SpaceNotificationStatus = 0 SpaceNotificationStatus_SCHEDULE SpaceNotificationStatus = 1 SpaceNotificationStatus_SCHEDULE_REMIND SpaceNotificationStatus = 2 SpaceNotificationStatus_START SpaceNotificationStatus = 3 )
func (SpaceNotificationStatus) Descriptor ¶
func (SpaceNotificationStatus) Descriptor() protoreflect.EnumDescriptor
func (SpaceNotificationStatus) Enum ¶
func (x SpaceNotificationStatus) Enum() *SpaceNotificationStatus
func (SpaceNotificationStatus) EnumDescriptor
deprecated
func (SpaceNotificationStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use SpaceNotificationStatus.Descriptor instead.
func (SpaceNotificationStatus) Number ¶
func (x SpaceNotificationStatus) Number() protoreflect.EnumNumber
func (SpaceNotificationStatus) String ¶
func (x SpaceNotificationStatus) String() string
func (SpaceNotificationStatus) Type ¶
func (SpaceNotificationStatus) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.