db

package
v0.0.0-...-8dac769 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 Open

func Open(path string) (*Client, error)

func (*Client) CheckNotified

func (c *Client) CheckNotified(spaceID string, status SpaceNotificationStatus) (bool, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) GetNotifiedStatus

func (c *Client) GetNotifiedStatus(spaceID string) (SpaceNotificationStatus, error)

func (*Client) RegisterSchedule

func (c *Client) RegisterSchedule(spaceID, creatorID, screenName, title string, scheduledStart, createdAt time.Time) error

func (*Client) RegisterScheduleRemind

func (c *Client) RegisterScheduleRemind(spaceID, creatorID, screenName, title string, scheduledStart, createdAt time.Time) error

func (*Client) RegisterStart

func (c *Client) RegisterStart(spaceID, creatorID, screenName, title string, startedAt, createdAt time.Time) error

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) Descriptor() ([]byte, []int)

Deprecated: Use Space.ProtoReflect.Descriptor instead.

func (*Space) GetCreatedAt

func (x *Space) GetCreatedAt() *timestamppb.Timestamp

func (*Space) GetCreatorId

func (x *Space) GetCreatorId() string

func (*Space) GetId

func (x *Space) GetId() string

func (*Space) GetNotificationStatus

func (x *Space) GetNotificationStatus() SpaceNotificationStatus

func (*Space) GetScheduledStart

func (x *Space) GetScheduledStart() *timestamppb.Timestamp

func (*Space) GetScreenName

func (x *Space) GetScreenName() string

func (*Space) GetStartedAt

func (x *Space) GetStartedAt() *timestamppb.Timestamp

func (*Space) GetTitle

func (x *Space) GetTitle() string

func (*Space) ProtoMessage

func (*Space) ProtoMessage()

func (*Space) ProtoReflect

func (x *Space) ProtoReflect() protoreflect.Message

func (*Space) Reset

func (x *Space) Reset()

func (*Space) String

func (x *Space) String() string

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) Enum

func (SpaceNotificationStatus) EnumDescriptor deprecated

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

Deprecated: Use SpaceNotificationStatus.Descriptor instead.

func (SpaceNotificationStatus) Number

func (SpaceNotificationStatus) String

func (x SpaceNotificationStatus) String() string

func (SpaceNotificationStatus) Type

Jump to

Keyboard shortcuts

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