api

package
v0.0.0-...-da19aa7 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_idl_http_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Message

type Message struct {
	Chat     string `protobuf:"bytes,1,opt,name=chat,proto3" json:"chat,omitempty"`                          // format "<member1>:<member2>", e.g. "john:doe"
	Text     string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`                          // message text content
	Sender   string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"`                      // sender identifier of the message
	SendTime int64  `protobuf:"varint,4,opt,name=send_time,json=sendTime,proto3" json:"send_time,omitempty"` // unit: microseconds
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetChat

func (x *Message) GetChat() string

func (*Message) GetSendTime

func (x *Message) GetSendTime() int64

func (*Message) GetSender

func (x *Message) GetSender() string

func (*Message) GetText

func (x *Message) GetText() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type PullRequest

type PullRequest struct {
	Chat    string `protobuf:"bytes,1,opt,name=chat,proto3" json:"chat,omitempty"`        // format "<member1>:<member2>", e.g. "john:doe"
	Cursor  int64  `protobuf:"varint,2,opt,name=cursor,proto3" json:"cursor,omitempty"`   // starting position of message's send_time, inclusively, 0 by default
	Limit   int32  `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`     // the maximum number of messages returned per request, 10 by default
	Reverse bool   `protobuf:"varint,4,opt,name=reverse,proto3" json:"reverse,omitempty"` // if false, the results will be sorted in ascending order by time
	// contains filtered or unexported fields
}

func (*PullRequest) Descriptor deprecated

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

Deprecated: Use PullRequest.ProtoReflect.Descriptor instead.

func (*PullRequest) GetChat

func (x *PullRequest) GetChat() string

func (*PullRequest) GetCursor

func (x *PullRequest) GetCursor() int64

func (*PullRequest) GetLimit

func (x *PullRequest) GetLimit() int32

func (*PullRequest) GetReverse

func (x *PullRequest) GetReverse() bool

func (*PullRequest) ProtoMessage

func (*PullRequest) ProtoMessage()

func (*PullRequest) ProtoReflect

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

func (*PullRequest) Reset

func (x *PullRequest) Reset()

func (*PullRequest) String

func (x *PullRequest) String() string

type PullResponse

type PullResponse struct {
	Messages   []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
	HasMore    bool       `protobuf:"varint,2,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"`          // if true, can use next_cursor to pull the next page of messages
	NextCursor int64      `protobuf:"varint,3,opt,name=next_cursor,json=nextCursor,proto3" json:"next_cursor,omitempty"` // starting position of next page, inclusively
	// contains filtered or unexported fields
}

func (*PullResponse) Descriptor deprecated

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

Deprecated: Use PullResponse.ProtoReflect.Descriptor instead.

func (*PullResponse) GetHasMore

func (x *PullResponse) GetHasMore() bool

func (*PullResponse) GetMessages

func (x *PullResponse) GetMessages() []*Message

func (*PullResponse) GetNextCursor

func (x *PullResponse) GetNextCursor() int64

func (*PullResponse) ProtoMessage

func (*PullResponse) ProtoMessage()

func (*PullResponse) ProtoReflect

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

func (*PullResponse) Reset

func (x *PullResponse) Reset()

func (*PullResponse) String

func (x *PullResponse) String() string

type SendRequest

type SendRequest struct {
	Chat   string `protobuf:"bytes,1,opt,name=chat,proto3" json:"chat,omitempty"`     // format "<member1>:<member2>", e.g. "john:doe"
	Text   string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`     // message text content to be sent
	Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"` // sender identifier
	// contains filtered or unexported fields
}

func (*SendRequest) Descriptor deprecated

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

Deprecated: Use SendRequest.ProtoReflect.Descriptor instead.

func (*SendRequest) GetChat

func (x *SendRequest) GetChat() string

func (*SendRequest) GetSender

func (x *SendRequest) GetSender() string

func (*SendRequest) GetText

func (x *SendRequest) GetText() string

func (*SendRequest) ProtoMessage

func (*SendRequest) ProtoMessage()

func (*SendRequest) ProtoReflect

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

func (*SendRequest) Reset

func (x *SendRequest) Reset()

func (*SendRequest) String

func (x *SendRequest) String() string

type SendResponse

type SendResponse struct {
	// contains filtered or unexported fields
}

func (*SendResponse) Descriptor deprecated

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

Deprecated: Use SendResponse.ProtoReflect.Descriptor instead.

func (*SendResponse) ProtoMessage

func (*SendResponse) ProtoMessage()

func (*SendResponse) ProtoReflect

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

func (*SendResponse) Reset

func (x *SendResponse) Reset()

func (*SendResponse) String

func (x *SendResponse) String() string

Jump to

Keyboard shortcuts

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