Documentation
¶
Index ¶
- Constants
- Variables
- func WriteError(resp http.ResponseWriter, err error)
- type Earmark
- func (*Earmark) Descriptor() ([]byte, []int)deprecated
- func (x *Earmark) GetCreated() *timestamppb.Timestamp
- func (x *Earmark) GetEventItemRefId() string
- func (x *Earmark) GetNote() string
- func (x *Earmark) GetOwner() string
- func (x *Earmark) GetRefId() string
- func (*Earmark) ProtoMessage()
- func (x *Earmark) ProtoReflect() protoreflect.Message
- func (x *Earmark) Reset()
- func (x *Earmark) String() string
- type EarmarkCreateRequest
- func (*EarmarkCreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EarmarkCreateRequest) GetEventItemRefId() string
- func (x *EarmarkCreateRequest) GetNote() string
- func (*EarmarkCreateRequest) ProtoMessage()
- func (x *EarmarkCreateRequest) ProtoReflect() protoreflect.Message
- func (x *EarmarkCreateRequest) Reset()
- func (x *EarmarkCreateRequest) String() string
- type EarmarkCreateResponse
- func (*EarmarkCreateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EarmarkCreateResponse) GetEarmark() *Earmark
- func (*EarmarkCreateResponse) ProtoMessage()
- func (x *EarmarkCreateResponse) ProtoReflect() protoreflect.Message
- func (x *EarmarkCreateResponse) Reset()
- func (x *EarmarkCreateResponse) String() string
- type EarmarkGetDetailsRequest
- func (*EarmarkGetDetailsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EarmarkGetDetailsRequest) GetRefId() string
- func (*EarmarkGetDetailsRequest) ProtoMessage()
- func (x *EarmarkGetDetailsRequest) ProtoReflect() protoreflect.Message
- func (x *EarmarkGetDetailsRequest) Reset()
- func (x *EarmarkGetDetailsRequest) String() string
- type EarmarkGetDetailsResponse
- func (*EarmarkGetDetailsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EarmarkGetDetailsResponse) GetEarmark() *Earmark
- func (x *EarmarkGetDetailsResponse) GetEventRefId() string
- func (*EarmarkGetDetailsResponse) ProtoMessage()
- func (x *EarmarkGetDetailsResponse) ProtoReflect() protoreflect.Message
- func (x *EarmarkGetDetailsResponse) Reset()
- func (x *EarmarkGetDetailsResponse) String() string
- type EarmarkRemoveRequest
- func (*EarmarkRemoveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EarmarkRemoveRequest) GetRefId() string
- func (*EarmarkRemoveRequest) ProtoMessage()
- func (x *EarmarkRemoveRequest) ProtoReflect() protoreflect.Message
- func (x *EarmarkRemoveRequest) Reset()
- func (x *EarmarkRemoveRequest) String() string
- type EarmarksListRequest
- func (*EarmarksListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EarmarksListRequest) GetArchived() bool
- func (x *EarmarksListRequest) GetPagination() *PaginationRequest
- func (*EarmarksListRequest) ProtoMessage()
- func (x *EarmarksListRequest) ProtoReflect() protoreflect.Message
- func (x *EarmarksListRequest) Reset()
- func (x *EarmarksListRequest) String() string
- type EarmarksListResponse
- func (*EarmarksListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EarmarksListResponse) GetEarmarks() []*Earmark
- func (x *EarmarksListResponse) GetPagination() *PaginationResult
- func (*EarmarksListResponse) ProtoMessage()
- func (x *EarmarksListResponse) ProtoReflect() protoreflect.Message
- func (x *EarmarksListResponse) Reset()
- func (x *EarmarksListResponse) String() string
- type Empty
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetArchived() bool
- func (x *Event) GetCreated() *timestamppb.Timestamp
- func (x *Event) GetDescription() string
- func (x *Event) GetName() string
- func (x *Event) GetRefId() string
- func (x *Event) GetWhen() *TimestampTZ
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type EventAddItemRequest
- func (*EventAddItemRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EventAddItemRequest) GetDescription() string
- func (x *EventAddItemRequest) GetEventRefId() string
- func (*EventAddItemRequest) ProtoMessage()
- func (x *EventAddItemRequest) ProtoReflect() protoreflect.Message
- func (x *EventAddItemRequest) Reset()
- func (x *EventAddItemRequest) String() string
- type EventAddItemResponse
- func (*EventAddItemResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EventAddItemResponse) GetEventItem() *EventItem
- func (*EventAddItemResponse) ProtoMessage()
- func (x *EventAddItemResponse) ProtoReflect() protoreflect.Message
- func (x *EventAddItemResponse) Reset()
- func (x *EventAddItemResponse) String() string
- type EventCreateRequest
- func (*EventCreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EventCreateRequest) GetDescription() string
- func (x *EventCreateRequest) GetName() string
- func (x *EventCreateRequest) GetWhen() *TimestampTZ
- func (*EventCreateRequest) ProtoMessage()
- func (x *EventCreateRequest) ProtoReflect() protoreflect.Message
- func (x *EventCreateRequest) Reset()
- func (x *EventCreateRequest) String() string
- type EventCreateResponse
- func (*EventCreateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EventCreateResponse) GetEvent() *Event
- func (*EventCreateResponse) ProtoMessage()
- func (x *EventCreateResponse) ProtoReflect() protoreflect.Message
- func (x *EventCreateResponse) Reset()
- func (x *EventCreateResponse) String() string
- type EventDeleteRequest
- func (*EventDeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EventDeleteRequest) GetRefId() string
- func (*EventDeleteRequest) ProtoMessage()
- func (x *EventDeleteRequest) ProtoReflect() protoreflect.Message
- func (x *EventDeleteRequest) Reset()
- func (x *EventDeleteRequest) String() string
- type EventGetDetailsRequest
- func (*EventGetDetailsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EventGetDetailsRequest) GetRefId() string
- func (*EventGetDetailsRequest) ProtoMessage()
- func (x *EventGetDetailsRequest) ProtoReflect() protoreflect.Message
- func (x *EventGetDetailsRequest) Reset()
- func (x *EventGetDetailsRequest) String() string
- type EventGetDetailsResponse
- func (*EventGetDetailsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EventGetDetailsResponse) GetEarmarks() []*Earmark
- func (x *EventGetDetailsResponse) GetEvent() *Event
- func (x *EventGetDetailsResponse) GetItems() []*EventItem
- func (*EventGetDetailsResponse) ProtoMessage()
- func (x *EventGetDetailsResponse) ProtoReflect() protoreflect.Message
- func (x *EventGetDetailsResponse) Reset()
- func (x *EventGetDetailsResponse) String() string
- type EventItem
- func (*EventItem) Descriptor() ([]byte, []int)deprecated
- func (x *EventItem) GetCreated() *timestamppb.Timestamp
- func (x *EventItem) GetDescription() string
- func (x *EventItem) GetRefId() string
- func (*EventItem) ProtoMessage()
- func (x *EventItem) ProtoReflect() protoreflect.Message
- func (x *EventItem) Reset()
- func (x *EventItem) String() string
- type EventListEarmarksRequest
- func (*EventListEarmarksRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EventListEarmarksRequest) GetRefId() string
- func (*EventListEarmarksRequest) ProtoMessage()
- func (x *EventListEarmarksRequest) ProtoReflect() protoreflect.Message
- func (x *EventListEarmarksRequest) Reset()
- func (x *EventListEarmarksRequest) String() string
- type EventListEarmarksResponse
- func (*EventListEarmarksResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EventListEarmarksResponse) GetEarmarks() []*Earmark
- func (x *EventListEarmarksResponse) GetPagination() *PaginationResult
- func (*EventListEarmarksResponse) ProtoMessage()
- func (x *EventListEarmarksResponse) ProtoReflect() protoreflect.Message
- func (x *EventListEarmarksResponse) Reset()
- func (x *EventListEarmarksResponse) String() string
- type EventListItemsRequest
- func (*EventListItemsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EventListItemsRequest) GetRefId() string
- func (*EventListItemsRequest) ProtoMessage()
- func (x *EventListItemsRequest) ProtoReflect() protoreflect.Message
- func (x *EventListItemsRequest) Reset()
- func (x *EventListItemsRequest) String() string
- type EventListItemsResponse
- func (*EventListItemsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EventListItemsResponse) GetItems() []*EventItem
- func (x *EventListItemsResponse) GetPagination() *PaginationResult
- func (*EventListItemsResponse) ProtoMessage()
- func (x *EventListItemsResponse) ProtoReflect() protoreflect.Message
- func (x *EventListItemsResponse) Reset()
- func (x *EventListItemsResponse) String() string
- type EventRemoveItemRequest
- func (*EventRemoveItemRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EventRemoveItemRequest) GetRefId() string
- func (*EventRemoveItemRequest) ProtoMessage()
- func (x *EventRemoveItemRequest) ProtoReflect() protoreflect.Message
- func (x *EventRemoveItemRequest) Reset()
- func (x *EventRemoveItemRequest) String() string
- type EventUpdateItemRequest
- func (*EventUpdateItemRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EventUpdateItemRequest) GetDescription() string
- func (x *EventUpdateItemRequest) GetRefId() string
- func (*EventUpdateItemRequest) ProtoMessage()
- func (x *EventUpdateItemRequest) ProtoReflect() protoreflect.Message
- func (x *EventUpdateItemRequest) Reset()
- func (x *EventUpdateItemRequest) String() string
- type EventUpdateItemResponse
- func (*EventUpdateItemResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EventUpdateItemResponse) GetEventItem() *EventItem
- func (*EventUpdateItemResponse) ProtoMessage()
- func (x *EventUpdateItemResponse) ProtoReflect() protoreflect.Message
- func (x *EventUpdateItemResponse) Reset()
- func (x *EventUpdateItemResponse) String() string
- type EventUpdateRequest
- func (*EventUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EventUpdateRequest) GetDescription() string
- func (x *EventUpdateRequest) GetName() string
- func (x *EventUpdateRequest) GetRefId() string
- func (x *EventUpdateRequest) GetWhen() *TimestampTZ
- func (*EventUpdateRequest) ProtoMessage()
- func (x *EventUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *EventUpdateRequest) Reset()
- func (x *EventUpdateRequest) String() string
- type EventsListRequest
- func (*EventsListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EventsListRequest) GetArchived() bool
- func (x *EventsListRequest) GetPagination() *PaginationRequest
- func (*EventsListRequest) ProtoMessage()
- func (x *EventsListRequest) ProtoReflect() protoreflect.Message
- func (x *EventsListRequest) Reset()
- func (x *EventsListRequest) String() string
- type EventsListResponse
- func (*EventsListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EventsListResponse) GetEvents() []*Event
- func (x *EventsListResponse) GetPagination() *PaginationResult
- func (*EventsListResponse) ProtoMessage()
- func (x *EventsListResponse) ProtoReflect() protoreflect.Message
- func (x *EventsListResponse) Reset()
- func (x *EventsListResponse) String() string
- type Favorite
- func (*Favorite) Descriptor() ([]byte, []int)deprecated
- func (x *Favorite) GetCreated() *timestamppb.Timestamp
- func (x *Favorite) GetEventRefId() string
- func (*Favorite) ProtoMessage()
- func (x *Favorite) ProtoReflect() protoreflect.Message
- func (x *Favorite) Reset()
- func (x *Favorite) String() string
- type FavoriteCreateRequest
- func (*FavoriteCreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteCreateRequest) GetEventRefId() string
- func (*FavoriteCreateRequest) ProtoMessage()
- func (x *FavoriteCreateRequest) ProtoReflect() protoreflect.Message
- func (x *FavoriteCreateRequest) Reset()
- func (x *FavoriteCreateRequest) String() string
- type FavoriteCreateResponse
- func (*FavoriteCreateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteCreateResponse) GetFavorite() *Favorite
- func (*FavoriteCreateResponse) ProtoMessage()
- func (x *FavoriteCreateResponse) ProtoReflect() protoreflect.Message
- func (x *FavoriteCreateResponse) Reset()
- func (x *FavoriteCreateResponse) String() string
- type FavoriteListEventsRequest
- func (*FavoriteListEventsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteListEventsRequest) GetArchived() bool
- func (x *FavoriteListEventsRequest) GetPagination() *PaginationRequest
- func (*FavoriteListEventsRequest) ProtoMessage()
- func (x *FavoriteListEventsRequest) ProtoReflect() protoreflect.Message
- func (x *FavoriteListEventsRequest) Reset()
- func (x *FavoriteListEventsRequest) String() string
- type FavoriteListEventsResponse
- func (*FavoriteListEventsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteListEventsResponse) GetEvents() []*Event
- func (x *FavoriteListEventsResponse) GetPagination() *PaginationResult
- func (*FavoriteListEventsResponse) ProtoMessage()
- func (x *FavoriteListEventsResponse) ProtoReflect() protoreflect.Message
- func (x *FavoriteListEventsResponse) Reset()
- func (x *FavoriteListEventsResponse) String() string
- type FavoriteRemoveRequest
- func (*FavoriteRemoveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteRemoveRequest) GetEventRefId() string
- func (*FavoriteRemoveRequest) ProtoMessage()
- func (x *FavoriteRemoveRequest) ProtoReflect() protoreflect.Message
- func (x *FavoriteRemoveRequest) Reset()
- func (x *FavoriteRemoveRequest) String() string
- type HTTPClient
- type Notification
- func (*Notification) Descriptor() ([]byte, []int)deprecated
- func (x *Notification) GetCreated() *timestamppb.Timestamp
- func (x *Notification) GetMessage() string
- func (x *Notification) GetRefId() string
- func (*Notification) ProtoMessage()
- func (x *Notification) ProtoReflect() protoreflect.Message
- func (x *Notification) Reset()
- func (x *Notification) String() string
- type NotificationDeleteRequest
- func (*NotificationDeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NotificationDeleteRequest) GetRefId() string
- func (*NotificationDeleteRequest) ProtoMessage()
- func (x *NotificationDeleteRequest) ProtoReflect() protoreflect.Message
- func (x *NotificationDeleteRequest) Reset()
- func (x *NotificationDeleteRequest) String() string
- type NotificationsListRequest
- func (*NotificationsListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NotificationsListRequest) GetPagination() *PaginationRequest
- func (*NotificationsListRequest) ProtoMessage()
- func (x *NotificationsListRequest) ProtoReflect() protoreflect.Message
- func (x *NotificationsListRequest) Reset()
- func (x *NotificationsListRequest) String() string
- type NotificationsListResponse
- func (*NotificationsListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *NotificationsListResponse) GetNotifications() []*Notification
- func (x *NotificationsListResponse) GetPagination() *PaginationResult
- func (*NotificationsListResponse) ProtoMessage()
- func (x *NotificationsListResponse) ProtoReflect() protoreflect.Message
- func (x *NotificationsListResponse) Reset()
- func (x *NotificationsListResponse) String() string
- type PaginationRequest
- func (*PaginationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PaginationRequest) GetLimit() uint32
- func (x *PaginationRequest) GetOffset() uint32
- func (*PaginationRequest) ProtoMessage()
- func (x *PaginationRequest) ProtoReflect() protoreflect.Message
- func (x *PaginationRequest) Reset()
- func (x *PaginationRequest) String() string
- type PaginationResult
- func (*PaginationResult) Descriptor() ([]byte, []int)deprecated
- func (x *PaginationResult) GetCount() uint32
- func (x *PaginationResult) GetLimit() uint32
- func (x *PaginationResult) GetOffset() uint32
- func (*PaginationResult) ProtoMessage()
- func (x *PaginationResult) ProtoReflect() protoreflect.Message
- func (x *PaginationResult) Reset()
- func (x *PaginationResult) String() string
- type Rpc
- type TimestampTZ
- func (*TimestampTZ) Descriptor() ([]byte, []int)deprecated
- func (x *TimestampTZ) GetTs() *timestamppb.Timestamp
- func (x *TimestampTZ) GetTz() string
- func (*TimestampTZ) ProtoMessage()
- func (x *TimestampTZ) ProtoReflect() protoreflect.Message
- func (x *TimestampTZ) Reset()
- func (x *TimestampTZ) String() string
- type TwirpServer
Constants ¶
const RpcPathPrefix = "/twirp/icbt.Rpc/"
RpcPathPrefix is a convenience constant that may identify URL paths. Should be used with caution, it only matches routes generated by Twirp Go clients, with the default "/twirp" prefix and default CamelCase service and method names. More info: https://twitchtv.github.io/twirp/docs/routing.html
Variables ¶
var File_service_proto protoreflect.FileDescriptor
Functions ¶
func WriteError ¶
func WriteError(resp http.ResponseWriter, err error)
WriteError writes an HTTP response with a valid Twirp error format (code, msg, meta). Useful outside of the Twirp server (e.g. http middleware), but does not trigger hooks. If err is not a twirp.Error, it will get wrapped with twirp.InternalErrorWith(err)
Types ¶
type Earmark ¶
type Earmark struct {
RefId string `protobuf:"bytes,1,opt,name=ref_id,json=refId,proto3" json:"ref_id,omitempty"`
EventItemRefId string `protobuf:"bytes,2,opt,name=event_item_ref_id,json=eventItemRefId,proto3" json:"event_item_ref_id,omitempty"`
Note string `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"`
Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"`
Created *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created,proto3" json:"created,omitempty"`
// contains filtered or unexported fields
}
func (*Earmark) Descriptor
deprecated
func (*Earmark) GetCreated ¶
func (x *Earmark) GetCreated() *timestamppb.Timestamp
func (*Earmark) GetEventItemRefId ¶
func (*Earmark) ProtoMessage ¶
func (*Earmark) ProtoMessage()
func (*Earmark) ProtoReflect ¶
func (x *Earmark) ProtoReflect() protoreflect.Message
type EarmarkCreateRequest ¶ added in v1.0.1
type EarmarkCreateRequest struct {
EventItemRefId string `protobuf:"bytes,1,opt,name=event_item_ref_id,json=eventItemRefId,proto3" json:"event_item_ref_id,omitempty"`
Note string `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"`
// contains filtered or unexported fields
}
func (*EarmarkCreateRequest) Descriptor
deprecated
added in
v1.0.1
func (*EarmarkCreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use EarmarkCreateRequest.ProtoReflect.Descriptor instead.
func (*EarmarkCreateRequest) GetEventItemRefId ¶ added in v1.0.1
func (x *EarmarkCreateRequest) GetEventItemRefId() string
func (*EarmarkCreateRequest) GetNote ¶ added in v1.0.1
func (x *EarmarkCreateRequest) GetNote() string
func (*EarmarkCreateRequest) ProtoMessage ¶ added in v1.0.1
func (*EarmarkCreateRequest) ProtoMessage()
func (*EarmarkCreateRequest) ProtoReflect ¶ added in v1.0.1
func (x *EarmarkCreateRequest) ProtoReflect() protoreflect.Message
func (*EarmarkCreateRequest) Reset ¶ added in v1.0.1
func (x *EarmarkCreateRequest) Reset()
func (*EarmarkCreateRequest) String ¶ added in v1.0.1
func (x *EarmarkCreateRequest) String() string
type EarmarkCreateResponse ¶ added in v1.0.1
type EarmarkCreateResponse struct {
Earmark *Earmark `protobuf:"bytes,1,opt,name=earmark,proto3" json:"earmark,omitempty"`
// contains filtered or unexported fields
}
func (*EarmarkCreateResponse) Descriptor
deprecated
added in
v1.0.1
func (*EarmarkCreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use EarmarkCreateResponse.ProtoReflect.Descriptor instead.
func (*EarmarkCreateResponse) GetEarmark ¶ added in v1.0.1
func (x *EarmarkCreateResponse) GetEarmark() *Earmark
func (*EarmarkCreateResponse) ProtoMessage ¶ added in v1.0.1
func (*EarmarkCreateResponse) ProtoMessage()
func (*EarmarkCreateResponse) ProtoReflect ¶ added in v1.0.1
func (x *EarmarkCreateResponse) ProtoReflect() protoreflect.Message
func (*EarmarkCreateResponse) Reset ¶ added in v1.0.1
func (x *EarmarkCreateResponse) Reset()
func (*EarmarkCreateResponse) String ¶ added in v1.0.1
func (x *EarmarkCreateResponse) String() string
type EarmarkGetDetailsRequest ¶ added in v1.0.1
type EarmarkGetDetailsRequest struct {
RefId string `protobuf:"bytes,1,opt,name=ref_id,json=refId,proto3" json:"ref_id,omitempty"`
// contains filtered or unexported fields
}
func (*EarmarkGetDetailsRequest) Descriptor
deprecated
added in
v1.0.1
func (*EarmarkGetDetailsRequest) Descriptor() ([]byte, []int)
Deprecated: Use EarmarkGetDetailsRequest.ProtoReflect.Descriptor instead.
func (*EarmarkGetDetailsRequest) GetRefId ¶ added in v1.0.1
func (x *EarmarkGetDetailsRequest) GetRefId() string
func (*EarmarkGetDetailsRequest) ProtoMessage ¶ added in v1.0.1
func (*EarmarkGetDetailsRequest) ProtoMessage()
func (*EarmarkGetDetailsRequest) ProtoReflect ¶ added in v1.0.1
func (x *EarmarkGetDetailsRequest) ProtoReflect() protoreflect.Message
func (*EarmarkGetDetailsRequest) Reset ¶ added in v1.0.1
func (x *EarmarkGetDetailsRequest) Reset()
func (*EarmarkGetDetailsRequest) String ¶ added in v1.0.1
func (x *EarmarkGetDetailsRequest) String() string
type EarmarkGetDetailsResponse ¶ added in v1.0.1
type EarmarkGetDetailsResponse struct {
Earmark *Earmark `protobuf:"bytes,1,opt,name=earmark,proto3" json:"earmark,omitempty"`
EventRefId string `protobuf:"bytes,2,opt,name=event_ref_id,json=eventRefId,proto3" json:"event_ref_id,omitempty"`
// contains filtered or unexported fields
}
func (*EarmarkGetDetailsResponse) Descriptor
deprecated
added in
v1.0.1
func (*EarmarkGetDetailsResponse) Descriptor() ([]byte, []int)
Deprecated: Use EarmarkGetDetailsResponse.ProtoReflect.Descriptor instead.
func (*EarmarkGetDetailsResponse) GetEarmark ¶ added in v1.0.1
func (x *EarmarkGetDetailsResponse) GetEarmark() *Earmark
func (*EarmarkGetDetailsResponse) GetEventRefId ¶ added in v1.0.1
func (x *EarmarkGetDetailsResponse) GetEventRefId() string
func (*EarmarkGetDetailsResponse) ProtoMessage ¶ added in v1.0.1
func (*EarmarkGetDetailsResponse) ProtoMessage()
func (*EarmarkGetDetailsResponse) ProtoReflect ¶ added in v1.0.1
func (x *EarmarkGetDetailsResponse) ProtoReflect() protoreflect.Message
func (*EarmarkGetDetailsResponse) Reset ¶ added in v1.0.1
func (x *EarmarkGetDetailsResponse) Reset()
func (*EarmarkGetDetailsResponse) String ¶ added in v1.0.1
func (x *EarmarkGetDetailsResponse) String() string
type EarmarkRemoveRequest ¶ added in v1.0.1
type EarmarkRemoveRequest struct {
RefId string `protobuf:"bytes,1,opt,name=ref_id,json=refId,proto3" json:"ref_id,omitempty"`
// contains filtered or unexported fields
}
func (*EarmarkRemoveRequest) Descriptor
deprecated
added in
v1.0.1
func (*EarmarkRemoveRequest) Descriptor() ([]byte, []int)
Deprecated: Use EarmarkRemoveRequest.ProtoReflect.Descriptor instead.
func (*EarmarkRemoveRequest) GetRefId ¶ added in v1.0.1
func (x *EarmarkRemoveRequest) GetRefId() string
func (*EarmarkRemoveRequest) ProtoMessage ¶ added in v1.0.1
func (*EarmarkRemoveRequest) ProtoMessage()
func (*EarmarkRemoveRequest) ProtoReflect ¶ added in v1.0.1
func (x *EarmarkRemoveRequest) ProtoReflect() protoreflect.Message
func (*EarmarkRemoveRequest) Reset ¶ added in v1.0.1
func (x *EarmarkRemoveRequest) Reset()
func (*EarmarkRemoveRequest) String ¶ added in v1.0.1
func (x *EarmarkRemoveRequest) String() string
type EarmarksListRequest ¶ added in v1.0.1
type EarmarksListRequest struct {
Pagination *PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3,oneof" json:"pagination,omitempty"`
Archived *bool `protobuf:"varint,2,opt,name=archived,proto3,oneof" json:"archived,omitempty"`
// contains filtered or unexported fields
}
func (*EarmarksListRequest) Descriptor
deprecated
added in
v1.0.1
func (*EarmarksListRequest) Descriptor() ([]byte, []int)
Deprecated: Use EarmarksListRequest.ProtoReflect.Descriptor instead.
func (*EarmarksListRequest) GetArchived ¶ added in v1.0.1
func (x *EarmarksListRequest) GetArchived() bool
func (*EarmarksListRequest) GetPagination ¶ added in v1.0.1
func (x *EarmarksListRequest) GetPagination() *PaginationRequest
func (*EarmarksListRequest) ProtoMessage ¶ added in v1.0.1
func (*EarmarksListRequest) ProtoMessage()
func (*EarmarksListRequest) ProtoReflect ¶ added in v1.0.1
func (x *EarmarksListRequest) ProtoReflect() protoreflect.Message
func (*EarmarksListRequest) Reset ¶ added in v1.0.1
func (x *EarmarksListRequest) Reset()
func (*EarmarksListRequest) String ¶ added in v1.0.1
func (x *EarmarksListRequest) String() string
type EarmarksListResponse ¶ added in v1.0.1
type EarmarksListResponse struct {
Earmarks []*Earmark `protobuf:"bytes,1,rep,name=earmarks,proto3" json:"earmarks,omitempty"`
Pagination *PaginationResult `protobuf:"bytes,2,opt,name=pagination,proto3,oneof" json:"pagination,omitempty"`
// contains filtered or unexported fields
}
func (*EarmarksListResponse) Descriptor
deprecated
added in
v1.0.1
func (*EarmarksListResponse) Descriptor() ([]byte, []int)
Deprecated: Use EarmarksListResponse.ProtoReflect.Descriptor instead.
func (*EarmarksListResponse) GetEarmarks ¶ added in v1.0.1
func (x *EarmarksListResponse) GetEarmarks() []*Earmark
func (*EarmarksListResponse) GetPagination ¶ added in v1.0.1
func (x *EarmarksListResponse) GetPagination() *PaginationResult
func (*EarmarksListResponse) ProtoMessage ¶ added in v1.0.1
func (*EarmarksListResponse) ProtoMessage()
func (*EarmarksListResponse) ProtoReflect ¶ added in v1.0.1
func (x *EarmarksListResponse) ProtoReflect() protoreflect.Message
func (*EarmarksListResponse) Reset ¶ added in v1.0.1
func (x *EarmarksListResponse) Reset()
func (*EarmarksListResponse) String ¶ added in v1.0.1
func (x *EarmarksListResponse) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type Event ¶
type Event struct {
RefId string `protobuf:"bytes,1,opt,name=ref_id,json=refId,proto3" json:"ref_id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
When *TimestampTZ `protobuf:"bytes,4,opt,name=when,proto3" json:"when,omitempty"`
Archived bool `protobuf:"varint,5,opt,name=archived,proto3" json:"archived,omitempty"`
Created *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created,proto3" json:"created,omitempty"`
// contains filtered or unexported fields
}
func (*Event) Descriptor
deprecated
func (*Event) GetArchived ¶
func (*Event) GetCreated ¶
func (x *Event) GetCreated() *timestamppb.Timestamp
func (*Event) GetDescription ¶
func (*Event) GetWhen ¶
func (x *Event) GetWhen() *TimestampTZ
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type EventAddItemRequest ¶ added in v1.0.1
type EventAddItemRequest struct {
EventRefId string `protobuf:"bytes,1,opt,name=event_ref_id,json=eventRefId,proto3" json:"event_ref_id,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// contains filtered or unexported fields
}
func (*EventAddItemRequest) Descriptor
deprecated
added in
v1.0.1
func (*EventAddItemRequest) Descriptor() ([]byte, []int)
Deprecated: Use EventAddItemRequest.ProtoReflect.Descriptor instead.
func (*EventAddItemRequest) GetDescription ¶ added in v1.0.1
func (x *EventAddItemRequest) GetDescription() string
func (*EventAddItemRequest) GetEventRefId ¶ added in v1.0.1
func (x *EventAddItemRequest) GetEventRefId() string
func (*EventAddItemRequest) ProtoMessage ¶ added in v1.0.1
func (*EventAddItemRequest) ProtoMessage()
func (*EventAddItemRequest) ProtoReflect ¶ added in v1.0.1
func (x *EventAddItemRequest) ProtoReflect() protoreflect.Message
func (*EventAddItemRequest) Reset ¶ added in v1.0.1
func (x *EventAddItemRequest) Reset()
func (*EventAddItemRequest) String ¶ added in v1.0.1
func (x *EventAddItemRequest) String() string
type EventAddItemResponse ¶ added in v1.0.1
type EventAddItemResponse struct {
EventItem *EventItem `protobuf:"bytes,1,opt,name=event_item,json=eventItem,proto3" json:"event_item,omitempty"`
// contains filtered or unexported fields
}
func (*EventAddItemResponse) Descriptor
deprecated
added in
v1.0.1
func (*EventAddItemResponse) Descriptor() ([]byte, []int)
Deprecated: Use EventAddItemResponse.ProtoReflect.Descriptor instead.
func (*EventAddItemResponse) GetEventItem ¶ added in v1.0.1
func (x *EventAddItemResponse) GetEventItem() *EventItem
func (*EventAddItemResponse) ProtoMessage ¶ added in v1.0.1
func (*EventAddItemResponse) ProtoMessage()
func (*EventAddItemResponse) ProtoReflect ¶ added in v1.0.1
func (x *EventAddItemResponse) ProtoReflect() protoreflect.Message
func (*EventAddItemResponse) Reset ¶ added in v1.0.1
func (x *EventAddItemResponse) Reset()
func (*EventAddItemResponse) String ¶ added in v1.0.1
func (x *EventAddItemResponse) String() string
type EventCreateRequest ¶ added in v1.0.1
type EventCreateRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
When *TimestampTZ `protobuf:"bytes,3,opt,name=when,proto3" json:"when,omitempty"`
// contains filtered or unexported fields
}
func (*EventCreateRequest) Descriptor
deprecated
added in
v1.0.1
func (*EventCreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use EventCreateRequest.ProtoReflect.Descriptor instead.
func (*EventCreateRequest) GetDescription ¶ added in v1.0.1
func (x *EventCreateRequest) GetDescription() string
func (*EventCreateRequest) GetName ¶ added in v1.0.1
func (x *EventCreateRequest) GetName() string
func (*EventCreateRequest) GetWhen ¶ added in v1.0.1
func (x *EventCreateRequest) GetWhen() *TimestampTZ
func (*EventCreateRequest) ProtoMessage ¶ added in v1.0.1
func (*EventCreateRequest) ProtoMessage()
func (*EventCreateRequest) ProtoReflect ¶ added in v1.0.1
func (x *EventCreateRequest) ProtoReflect() protoreflect.Message
func (*EventCreateRequest) Reset ¶ added in v1.0.1
func (x *EventCreateRequest) Reset()
func (*EventCreateRequest) String ¶ added in v1.0.1
func (x *EventCreateRequest) String() string
type EventCreateResponse ¶ added in v1.0.1
type EventCreateResponse struct {
Event *Event `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
// contains filtered or unexported fields
}
func (*EventCreateResponse) Descriptor
deprecated
added in
v1.0.1
func (*EventCreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use EventCreateResponse.ProtoReflect.Descriptor instead.
func (*EventCreateResponse) GetEvent ¶ added in v1.0.1
func (x *EventCreateResponse) GetEvent() *Event
func (*EventCreateResponse) ProtoMessage ¶ added in v1.0.1
func (*EventCreateResponse) ProtoMessage()
func (*EventCreateResponse) ProtoReflect ¶ added in v1.0.1
func (x *EventCreateResponse) ProtoReflect() protoreflect.Message
func (*EventCreateResponse) Reset ¶ added in v1.0.1
func (x *EventCreateResponse) Reset()
func (*EventCreateResponse) String ¶ added in v1.0.1
func (x *EventCreateResponse) String() string
type EventDeleteRequest ¶ added in v1.0.1
type EventDeleteRequest struct {
RefId string `protobuf:"bytes,1,opt,name=ref_id,json=refId,proto3" json:"ref_id,omitempty"`
// contains filtered or unexported fields
}
func (*EventDeleteRequest) Descriptor
deprecated
added in
v1.0.1
func (*EventDeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use EventDeleteRequest.ProtoReflect.Descriptor instead.
func (*EventDeleteRequest) GetRefId ¶ added in v1.0.1
func (x *EventDeleteRequest) GetRefId() string
func (*EventDeleteRequest) ProtoMessage ¶ added in v1.0.1
func (*EventDeleteRequest) ProtoMessage()
func (*EventDeleteRequest) ProtoReflect ¶ added in v1.0.1
func (x *EventDeleteRequest) ProtoReflect() protoreflect.Message
func (*EventDeleteRequest) Reset ¶ added in v1.0.1
func (x *EventDeleteRequest) Reset()
func (*EventDeleteRequest) String ¶ added in v1.0.1
func (x *EventDeleteRequest) String() string
type EventGetDetailsRequest ¶ added in v1.0.1
type EventGetDetailsRequest struct {
RefId string `protobuf:"bytes,1,opt,name=ref_id,json=refId,proto3" json:"ref_id,omitempty"`
// contains filtered or unexported fields
}
func (*EventGetDetailsRequest) Descriptor
deprecated
added in
v1.0.1
func (*EventGetDetailsRequest) Descriptor() ([]byte, []int)
Deprecated: Use EventGetDetailsRequest.ProtoReflect.Descriptor instead.
func (*EventGetDetailsRequest) GetRefId ¶ added in v1.0.1
func (x *EventGetDetailsRequest) GetRefId() string
func (*EventGetDetailsRequest) ProtoMessage ¶ added in v1.0.1
func (*EventGetDetailsRequest) ProtoMessage()
func (*EventGetDetailsRequest) ProtoReflect ¶ added in v1.0.1
func (x *EventGetDetailsRequest) ProtoReflect() protoreflect.Message
func (*EventGetDetailsRequest) Reset ¶ added in v1.0.1
func (x *EventGetDetailsRequest) Reset()
func (*EventGetDetailsRequest) String ¶ added in v1.0.1
func (x *EventGetDetailsRequest) String() string
type EventGetDetailsResponse ¶ added in v1.0.1
type EventGetDetailsResponse struct {
Event *Event `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
Items []*EventItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
Earmarks []*Earmark `protobuf:"bytes,3,rep,name=earmarks,proto3" json:"earmarks,omitempty"`
// contains filtered or unexported fields
}
func (*EventGetDetailsResponse) Descriptor
deprecated
added in
v1.0.1
func (*EventGetDetailsResponse) Descriptor() ([]byte, []int)
Deprecated: Use EventGetDetailsResponse.ProtoReflect.Descriptor instead.
func (*EventGetDetailsResponse) GetEarmarks ¶ added in v1.0.1
func (x *EventGetDetailsResponse) GetEarmarks() []*Earmark
func (*EventGetDetailsResponse) GetEvent ¶ added in v1.0.1
func (x *EventGetDetailsResponse) GetEvent() *Event
func (*EventGetDetailsResponse) GetItems ¶ added in v1.0.1
func (x *EventGetDetailsResponse) GetItems() []*EventItem
func (*EventGetDetailsResponse) ProtoMessage ¶ added in v1.0.1
func (*EventGetDetailsResponse) ProtoMessage()
func (*EventGetDetailsResponse) ProtoReflect ¶ added in v1.0.1
func (x *EventGetDetailsResponse) ProtoReflect() protoreflect.Message
func (*EventGetDetailsResponse) Reset ¶ added in v1.0.1
func (x *EventGetDetailsResponse) Reset()
func (*EventGetDetailsResponse) String ¶ added in v1.0.1
func (x *EventGetDetailsResponse) String() string
type EventItem ¶
type EventItem struct {
RefId string `protobuf:"bytes,1,opt,name=ref_id,json=refId,proto3" json:"ref_id,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
Created *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created,proto3" json:"created,omitempty"`
// contains filtered or unexported fields
}
func (*EventItem) Descriptor
deprecated
func (*EventItem) GetCreated ¶
func (x *EventItem) GetCreated() *timestamppb.Timestamp
func (*EventItem) GetDescription ¶
func (*EventItem) ProtoMessage ¶
func (*EventItem) ProtoMessage()
func (*EventItem) ProtoReflect ¶
func (x *EventItem) ProtoReflect() protoreflect.Message
type EventListEarmarksRequest ¶ added in v1.0.1
type EventListEarmarksRequest struct {
RefId string `protobuf:"bytes,1,opt,name=ref_id,json=refId,proto3" json:"ref_id,omitempty"` // event ref-id
// contains filtered or unexported fields
}
func (*EventListEarmarksRequest) Descriptor
deprecated
added in
v1.0.1
func (*EventListEarmarksRequest) Descriptor() ([]byte, []int)
Deprecated: Use EventListEarmarksRequest.ProtoReflect.Descriptor instead.
func (*EventListEarmarksRequest) GetRefId ¶ added in v1.0.1
func (x *EventListEarmarksRequest) GetRefId() string
func (*EventListEarmarksRequest) ProtoMessage ¶ added in v1.0.1
func (*EventListEarmarksRequest) ProtoMessage()
func (*EventListEarmarksRequest) ProtoReflect ¶ added in v1.0.1
func (x *EventListEarmarksRequest) ProtoReflect() protoreflect.Message
func (*EventListEarmarksRequest) Reset ¶ added in v1.0.1
func (x *EventListEarmarksRequest) Reset()
func (*EventListEarmarksRequest) String ¶ added in v1.0.1
func (x *EventListEarmarksRequest) String() string
type EventListEarmarksResponse ¶ added in v1.0.1
type EventListEarmarksResponse struct {
Earmarks []*Earmark `protobuf:"bytes,1,rep,name=earmarks,proto3" json:"earmarks,omitempty"`
Pagination *PaginationResult `protobuf:"bytes,2,opt,name=pagination,proto3,oneof" json:"pagination,omitempty"`
// contains filtered or unexported fields
}
func (*EventListEarmarksResponse) Descriptor
deprecated
added in
v1.0.1
func (*EventListEarmarksResponse) Descriptor() ([]byte, []int)
Deprecated: Use EventListEarmarksResponse.ProtoReflect.Descriptor instead.
func (*EventListEarmarksResponse) GetEarmarks ¶ added in v1.0.1
func (x *EventListEarmarksResponse) GetEarmarks() []*Earmark
func (*EventListEarmarksResponse) GetPagination ¶ added in v1.0.1
func (x *EventListEarmarksResponse) GetPagination() *PaginationResult
func (*EventListEarmarksResponse) ProtoMessage ¶ added in v1.0.1
func (*EventListEarmarksResponse) ProtoMessage()
func (*EventListEarmarksResponse) ProtoReflect ¶ added in v1.0.1
func (x *EventListEarmarksResponse) ProtoReflect() protoreflect.Message
func (*EventListEarmarksResponse) Reset ¶ added in v1.0.1
func (x *EventListEarmarksResponse) Reset()
func (*EventListEarmarksResponse) String ¶ added in v1.0.1
func (x *EventListEarmarksResponse) String() string
type EventListItemsRequest ¶ added in v1.0.1
type EventListItemsRequest struct {
RefId string `protobuf:"bytes,1,opt,name=ref_id,json=refId,proto3" json:"ref_id,omitempty"` // event ref-id
// contains filtered or unexported fields
}
func (*EventListItemsRequest) Descriptor
deprecated
added in
v1.0.1
func (*EventListItemsRequest) Descriptor() ([]byte, []int)
Deprecated: Use EventListItemsRequest.ProtoReflect.Descriptor instead.
func (*EventListItemsRequest) GetRefId ¶ added in v1.0.1
func (x *EventListItemsRequest) GetRefId() string
func (*EventListItemsRequest) ProtoMessage ¶ added in v1.0.1
func (*EventListItemsRequest) ProtoMessage()
func (*EventListItemsRequest) ProtoReflect ¶ added in v1.0.1
func (x *EventListItemsRequest) ProtoReflect() protoreflect.Message
func (*EventListItemsRequest) Reset ¶ added in v1.0.1
func (x *EventListItemsRequest) Reset()
func (*EventListItemsRequest) String ¶ added in v1.0.1
func (x *EventListItemsRequest) String() string
type EventListItemsResponse ¶ added in v1.0.1
type EventListItemsResponse struct {
Items []*EventItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
Pagination *PaginationResult `protobuf:"bytes,2,opt,name=pagination,proto3,oneof" json:"pagination,omitempty"`
// contains filtered or unexported fields
}
func (*EventListItemsResponse) Descriptor
deprecated
added in
v1.0.1
func (*EventListItemsResponse) Descriptor() ([]byte, []int)
Deprecated: Use EventListItemsResponse.ProtoReflect.Descriptor instead.
func (*EventListItemsResponse) GetItems ¶ added in v1.0.1
func (x *EventListItemsResponse) GetItems() []*EventItem
func (*EventListItemsResponse) GetPagination ¶ added in v1.0.1
func (x *EventListItemsResponse) GetPagination() *PaginationResult
func (*EventListItemsResponse) ProtoMessage ¶ added in v1.0.1
func (*EventListItemsResponse) ProtoMessage()
func (*EventListItemsResponse) ProtoReflect ¶ added in v1.0.1
func (x *EventListItemsResponse) ProtoReflect() protoreflect.Message
func (*EventListItemsResponse) Reset ¶ added in v1.0.1
func (x *EventListItemsResponse) Reset()
func (*EventListItemsResponse) String ¶ added in v1.0.1
func (x *EventListItemsResponse) String() string
type EventRemoveItemRequest ¶ added in v1.0.1
type EventRemoveItemRequest struct {
RefId string `protobuf:"bytes,1,opt,name=ref_id,json=refId,proto3" json:"ref_id,omitempty"`
// contains filtered or unexported fields
}
func (*EventRemoveItemRequest) Descriptor
deprecated
added in
v1.0.1
func (*EventRemoveItemRequest) Descriptor() ([]byte, []int)
Deprecated: Use EventRemoveItemRequest.ProtoReflect.Descriptor instead.
func (*EventRemoveItemRequest) GetRefId ¶ added in v1.0.1
func (x *EventRemoveItemRequest) GetRefId() string
func (*EventRemoveItemRequest) ProtoMessage ¶ added in v1.0.1
func (*EventRemoveItemRequest) ProtoMessage()
func (*EventRemoveItemRequest) ProtoReflect ¶ added in v1.0.1
func (x *EventRemoveItemRequest) ProtoReflect() protoreflect.Message
func (*EventRemoveItemRequest) Reset ¶ added in v1.0.1
func (x *EventRemoveItemRequest) Reset()
func (*EventRemoveItemRequest) String ¶ added in v1.0.1
func (x *EventRemoveItemRequest) String() string
type EventUpdateItemRequest ¶ added in v1.0.1
type EventUpdateItemRequest struct {
RefId string `protobuf:"bytes,1,opt,name=ref_id,json=refId,proto3" json:"ref_id,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// contains filtered or unexported fields
}
func (*EventUpdateItemRequest) Descriptor
deprecated
added in
v1.0.1
func (*EventUpdateItemRequest) Descriptor() ([]byte, []int)
Deprecated: Use EventUpdateItemRequest.ProtoReflect.Descriptor instead.
func (*EventUpdateItemRequest) GetDescription ¶ added in v1.0.1
func (x *EventUpdateItemRequest) GetDescription() string
func (*EventUpdateItemRequest) GetRefId ¶ added in v1.0.1
func (x *EventUpdateItemRequest) GetRefId() string
func (*EventUpdateItemRequest) ProtoMessage ¶ added in v1.0.1
func (*EventUpdateItemRequest) ProtoMessage()
func (*EventUpdateItemRequest) ProtoReflect ¶ added in v1.0.1
func (x *EventUpdateItemRequest) ProtoReflect() protoreflect.Message
func (*EventUpdateItemRequest) Reset ¶ added in v1.0.1
func (x *EventUpdateItemRequest) Reset()
func (*EventUpdateItemRequest) String ¶ added in v1.0.1
func (x *EventUpdateItemRequest) String() string
type EventUpdateItemResponse ¶ added in v1.0.1
type EventUpdateItemResponse struct {
EventItem *EventItem `protobuf:"bytes,1,opt,name=event_item,json=eventItem,proto3" json:"event_item,omitempty"`
// contains filtered or unexported fields
}
func (*EventUpdateItemResponse) Descriptor
deprecated
added in
v1.0.1
func (*EventUpdateItemResponse) Descriptor() ([]byte, []int)
Deprecated: Use EventUpdateItemResponse.ProtoReflect.Descriptor instead.
func (*EventUpdateItemResponse) GetEventItem ¶ added in v1.0.1
func (x *EventUpdateItemResponse) GetEventItem() *EventItem
func (*EventUpdateItemResponse) ProtoMessage ¶ added in v1.0.1
func (*EventUpdateItemResponse) ProtoMessage()
func (*EventUpdateItemResponse) ProtoReflect ¶ added in v1.0.1
func (x *EventUpdateItemResponse) ProtoReflect() protoreflect.Message
func (*EventUpdateItemResponse) Reset ¶ added in v1.0.1
func (x *EventUpdateItemResponse) Reset()
func (*EventUpdateItemResponse) String ¶ added in v1.0.1
func (x *EventUpdateItemResponse) String() string
type EventUpdateRequest ¶ added in v1.0.1
type EventUpdateRequest struct {
RefId string `protobuf:"bytes,1,opt,name=ref_id,json=refId,proto3" json:"ref_id,omitempty"`
Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"`
When *TimestampTZ `protobuf:"bytes,4,opt,name=when,proto3,oneof" json:"when,omitempty"`
// contains filtered or unexported fields
}
func (*EventUpdateRequest) Descriptor
deprecated
added in
v1.0.1
func (*EventUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use EventUpdateRequest.ProtoReflect.Descriptor instead.
func (*EventUpdateRequest) GetDescription ¶ added in v1.0.1
func (x *EventUpdateRequest) GetDescription() string
func (*EventUpdateRequest) GetName ¶ added in v1.0.1
func (x *EventUpdateRequest) GetName() string
func (*EventUpdateRequest) GetRefId ¶ added in v1.0.1
func (x *EventUpdateRequest) GetRefId() string
func (*EventUpdateRequest) GetWhen ¶ added in v1.0.1
func (x *EventUpdateRequest) GetWhen() *TimestampTZ
func (*EventUpdateRequest) ProtoMessage ¶ added in v1.0.1
func (*EventUpdateRequest) ProtoMessage()
func (*EventUpdateRequest) ProtoReflect ¶ added in v1.0.1
func (x *EventUpdateRequest) ProtoReflect() protoreflect.Message
func (*EventUpdateRequest) Reset ¶ added in v1.0.1
func (x *EventUpdateRequest) Reset()
func (*EventUpdateRequest) String ¶ added in v1.0.1
func (x *EventUpdateRequest) String() string
type EventsListRequest ¶ added in v1.0.1
type EventsListRequest struct {
Pagination *PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3,oneof" json:"pagination,omitempty"`
Archived *bool `protobuf:"varint,2,opt,name=archived,proto3,oneof" json:"archived,omitempty"`
// contains filtered or unexported fields
}
func (*EventsListRequest) Descriptor
deprecated
added in
v1.0.1
func (*EventsListRequest) Descriptor() ([]byte, []int)
Deprecated: Use EventsListRequest.ProtoReflect.Descriptor instead.
func (*EventsListRequest) GetArchived ¶ added in v1.0.1
func (x *EventsListRequest) GetArchived() bool
func (*EventsListRequest) GetPagination ¶ added in v1.0.1
func (x *EventsListRequest) GetPagination() *PaginationRequest
func (*EventsListRequest) ProtoMessage ¶ added in v1.0.1
func (*EventsListRequest) ProtoMessage()
func (*EventsListRequest) ProtoReflect ¶ added in v1.0.1
func (x *EventsListRequest) ProtoReflect() protoreflect.Message
func (*EventsListRequest) Reset ¶ added in v1.0.1
func (x *EventsListRequest) Reset()
func (*EventsListRequest) String ¶ added in v1.0.1
func (x *EventsListRequest) String() string
type EventsListResponse ¶ added in v1.0.1
type EventsListResponse struct {
Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
Pagination *PaginationResult `protobuf:"bytes,2,opt,name=pagination,proto3,oneof" json:"pagination,omitempty"`
// contains filtered or unexported fields
}
func (*EventsListResponse) Descriptor
deprecated
added in
v1.0.1
func (*EventsListResponse) Descriptor() ([]byte, []int)
Deprecated: Use EventsListResponse.ProtoReflect.Descriptor instead.
func (*EventsListResponse) GetEvents ¶ added in v1.0.1
func (x *EventsListResponse) GetEvents() []*Event
func (*EventsListResponse) GetPagination ¶ added in v1.0.1
func (x *EventsListResponse) GetPagination() *PaginationResult
func (*EventsListResponse) ProtoMessage ¶ added in v1.0.1
func (*EventsListResponse) ProtoMessage()
func (*EventsListResponse) ProtoReflect ¶ added in v1.0.1
func (x *EventsListResponse) ProtoReflect() protoreflect.Message
func (*EventsListResponse) Reset ¶ added in v1.0.1
func (x *EventsListResponse) Reset()
func (*EventsListResponse) String ¶ added in v1.0.1
func (x *EventsListResponse) String() string
type Favorite ¶
type Favorite struct {
EventRefId string `protobuf:"bytes,1,opt,name=event_ref_id,json=eventRefId,proto3" json:"event_ref_id,omitempty"` // event ref-id
Created *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created,proto3" json:"created,omitempty"`
// contains filtered or unexported fields
}
func (*Favorite) Descriptor
deprecated
func (*Favorite) GetCreated ¶
func (x *Favorite) GetCreated() *timestamppb.Timestamp
func (*Favorite) GetEventRefId ¶
func (*Favorite) ProtoMessage ¶
func (*Favorite) ProtoMessage()
func (*Favorite) ProtoReflect ¶
func (x *Favorite) ProtoReflect() protoreflect.Message
type FavoriteCreateRequest ¶ added in v1.0.1
type FavoriteCreateRequest struct {
EventRefId string `protobuf:"bytes,1,opt,name=event_ref_id,json=eventRefId,proto3" json:"event_ref_id,omitempty"` // event ref-id
// contains filtered or unexported fields
}
func (*FavoriteCreateRequest) Descriptor
deprecated
added in
v1.0.1
func (*FavoriteCreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteCreateRequest.ProtoReflect.Descriptor instead.
func (*FavoriteCreateRequest) GetEventRefId ¶ added in v1.0.1
func (x *FavoriteCreateRequest) GetEventRefId() string
func (*FavoriteCreateRequest) ProtoMessage ¶ added in v1.0.1
func (*FavoriteCreateRequest) ProtoMessage()
func (*FavoriteCreateRequest) ProtoReflect ¶ added in v1.0.1
func (x *FavoriteCreateRequest) ProtoReflect() protoreflect.Message
func (*FavoriteCreateRequest) Reset ¶ added in v1.0.1
func (x *FavoriteCreateRequest) Reset()
func (*FavoriteCreateRequest) String ¶ added in v1.0.1
func (x *FavoriteCreateRequest) String() string
type FavoriteCreateResponse ¶ added in v1.0.1
type FavoriteCreateResponse struct {
Favorite *Favorite `protobuf:"bytes,1,opt,name=favorite,proto3" json:"favorite,omitempty"`
// contains filtered or unexported fields
}
func (*FavoriteCreateResponse) Descriptor
deprecated
added in
v1.0.1
func (*FavoriteCreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteCreateResponse.ProtoReflect.Descriptor instead.
func (*FavoriteCreateResponse) GetFavorite ¶ added in v1.0.1
func (x *FavoriteCreateResponse) GetFavorite() *Favorite
func (*FavoriteCreateResponse) ProtoMessage ¶ added in v1.0.1
func (*FavoriteCreateResponse) ProtoMessage()
func (*FavoriteCreateResponse) ProtoReflect ¶ added in v1.0.1
func (x *FavoriteCreateResponse) ProtoReflect() protoreflect.Message
func (*FavoriteCreateResponse) Reset ¶ added in v1.0.1
func (x *FavoriteCreateResponse) Reset()
func (*FavoriteCreateResponse) String ¶ added in v1.0.1
func (x *FavoriteCreateResponse) String() string
type FavoriteListEventsRequest ¶ added in v1.0.1
type FavoriteListEventsRequest struct {
Pagination *PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3,oneof" json:"pagination,omitempty"`
Archived *bool `protobuf:"varint,2,opt,name=archived,proto3,oneof" json:"archived,omitempty"`
// contains filtered or unexported fields
}
func (*FavoriteListEventsRequest) Descriptor
deprecated
added in
v1.0.1
func (*FavoriteListEventsRequest) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteListEventsRequest.ProtoReflect.Descriptor instead.
func (*FavoriteListEventsRequest) GetArchived ¶ added in v1.0.1
func (x *FavoriteListEventsRequest) GetArchived() bool
func (*FavoriteListEventsRequest) GetPagination ¶ added in v1.0.1
func (x *FavoriteListEventsRequest) GetPagination() *PaginationRequest
func (*FavoriteListEventsRequest) ProtoMessage ¶ added in v1.0.1
func (*FavoriteListEventsRequest) ProtoMessage()
func (*FavoriteListEventsRequest) ProtoReflect ¶ added in v1.0.1
func (x *FavoriteListEventsRequest) ProtoReflect() protoreflect.Message
func (*FavoriteListEventsRequest) Reset ¶ added in v1.0.1
func (x *FavoriteListEventsRequest) Reset()
func (*FavoriteListEventsRequest) String ¶ added in v1.0.1
func (x *FavoriteListEventsRequest) String() string
type FavoriteListEventsResponse ¶ added in v1.0.1
type FavoriteListEventsResponse struct {
Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
Pagination *PaginationResult `protobuf:"bytes,2,opt,name=pagination,proto3,oneof" json:"pagination,omitempty"`
// contains filtered or unexported fields
}
func (*FavoriteListEventsResponse) Descriptor
deprecated
added in
v1.0.1
func (*FavoriteListEventsResponse) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteListEventsResponse.ProtoReflect.Descriptor instead.
func (*FavoriteListEventsResponse) GetEvents ¶ added in v1.0.1
func (x *FavoriteListEventsResponse) GetEvents() []*Event
func (*FavoriteListEventsResponse) GetPagination ¶ added in v1.0.1
func (x *FavoriteListEventsResponse) GetPagination() *PaginationResult
func (*FavoriteListEventsResponse) ProtoMessage ¶ added in v1.0.1
func (*FavoriteListEventsResponse) ProtoMessage()
func (*FavoriteListEventsResponse) ProtoReflect ¶ added in v1.0.1
func (x *FavoriteListEventsResponse) ProtoReflect() protoreflect.Message
func (*FavoriteListEventsResponse) Reset ¶ added in v1.0.1
func (x *FavoriteListEventsResponse) Reset()
func (*FavoriteListEventsResponse) String ¶ added in v1.0.1
func (x *FavoriteListEventsResponse) String() string
type FavoriteRemoveRequest ¶ added in v1.0.1
type FavoriteRemoveRequest struct {
EventRefId string `protobuf:"bytes,1,opt,name=event_ref_id,json=eventRefId,proto3" json:"event_ref_id,omitempty"` // event ref-id
// contains filtered or unexported fields
}
func (*FavoriteRemoveRequest) Descriptor
deprecated
added in
v1.0.1
func (*FavoriteRemoveRequest) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteRemoveRequest.ProtoReflect.Descriptor instead.
func (*FavoriteRemoveRequest) GetEventRefId ¶ added in v1.0.1
func (x *FavoriteRemoveRequest) GetEventRefId() string
func (*FavoriteRemoveRequest) ProtoMessage ¶ added in v1.0.1
func (*FavoriteRemoveRequest) ProtoMessage()
func (*FavoriteRemoveRequest) ProtoReflect ¶ added in v1.0.1
func (x *FavoriteRemoveRequest) ProtoReflect() protoreflect.Message
func (*FavoriteRemoveRequest) Reset ¶ added in v1.0.1
func (x *FavoriteRemoveRequest) Reset()
func (*FavoriteRemoveRequest) String ¶ added in v1.0.1
func (x *FavoriteRemoveRequest) String() string
type HTTPClient ¶
HTTPClient is the interface used by generated clients to send HTTP requests. It is fulfilled by *(net/http).Client, which is sufficient for most users. Users can provide their own implementation for special retry policies.
HTTPClient implementations should not follow redirects. Redirects are automatically disabled if *(net/http).Client is passed to client constructors. See the withoutRedirects function in this file for more details.
type Notification ¶
type Notification struct {
RefId string `protobuf:"bytes,1,opt,name=ref_id,json=refId,proto3" json:"ref_id,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
Created *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created,proto3" json:"created,omitempty"`
// contains filtered or unexported fields
}
func (*Notification) Descriptor
deprecated
func (*Notification) Descriptor() ([]byte, []int)
Deprecated: Use Notification.ProtoReflect.Descriptor instead.
func (*Notification) GetCreated ¶
func (x *Notification) GetCreated() *timestamppb.Timestamp
func (*Notification) GetMessage ¶
func (x *Notification) GetMessage() string
func (*Notification) GetRefId ¶
func (x *Notification) GetRefId() string
func (*Notification) ProtoMessage ¶
func (*Notification) ProtoMessage()
func (*Notification) ProtoReflect ¶
func (x *Notification) ProtoReflect() protoreflect.Message
func (*Notification) Reset ¶
func (x *Notification) Reset()
func (*Notification) String ¶
func (x *Notification) String() string
type NotificationDeleteRequest ¶ added in v1.0.1
type NotificationDeleteRequest struct {
RefId string `protobuf:"bytes,1,opt,name=ref_id,json=refId,proto3" json:"ref_id,omitempty"`
// contains filtered or unexported fields
}
func (*NotificationDeleteRequest) Descriptor
deprecated
added in
v1.0.1
func (*NotificationDeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use NotificationDeleteRequest.ProtoReflect.Descriptor instead.
func (*NotificationDeleteRequest) GetRefId ¶ added in v1.0.1
func (x *NotificationDeleteRequest) GetRefId() string
func (*NotificationDeleteRequest) ProtoMessage ¶ added in v1.0.1
func (*NotificationDeleteRequest) ProtoMessage()
func (*NotificationDeleteRequest) ProtoReflect ¶ added in v1.0.1
func (x *NotificationDeleteRequest) ProtoReflect() protoreflect.Message
func (*NotificationDeleteRequest) Reset ¶ added in v1.0.1
func (x *NotificationDeleteRequest) Reset()
func (*NotificationDeleteRequest) String ¶ added in v1.0.1
func (x *NotificationDeleteRequest) String() string
type NotificationsListRequest ¶ added in v1.0.1
type NotificationsListRequest struct {
Pagination *PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3,oneof" json:"pagination,omitempty"`
// contains filtered or unexported fields
}
func (*NotificationsListRequest) Descriptor
deprecated
added in
v1.0.1
func (*NotificationsListRequest) Descriptor() ([]byte, []int)
Deprecated: Use NotificationsListRequest.ProtoReflect.Descriptor instead.
func (*NotificationsListRequest) GetPagination ¶ added in v1.0.1
func (x *NotificationsListRequest) GetPagination() *PaginationRequest
func (*NotificationsListRequest) ProtoMessage ¶ added in v1.0.1
func (*NotificationsListRequest) ProtoMessage()
func (*NotificationsListRequest) ProtoReflect ¶ added in v1.0.1
func (x *NotificationsListRequest) ProtoReflect() protoreflect.Message
func (*NotificationsListRequest) Reset ¶ added in v1.0.1
func (x *NotificationsListRequest) Reset()
func (*NotificationsListRequest) String ¶ added in v1.0.1
func (x *NotificationsListRequest) String() string
type NotificationsListResponse ¶ added in v1.0.1
type NotificationsListResponse struct {
Notifications []*Notification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"`
Pagination *PaginationResult `protobuf:"bytes,2,opt,name=pagination,proto3,oneof" json:"pagination,omitempty"`
// contains filtered or unexported fields
}
func (*NotificationsListResponse) Descriptor
deprecated
added in
v1.0.1
func (*NotificationsListResponse) Descriptor() ([]byte, []int)
Deprecated: Use NotificationsListResponse.ProtoReflect.Descriptor instead.
func (*NotificationsListResponse) GetNotifications ¶ added in v1.0.1
func (x *NotificationsListResponse) GetNotifications() []*Notification
func (*NotificationsListResponse) GetPagination ¶ added in v1.0.1
func (x *NotificationsListResponse) GetPagination() *PaginationResult
func (*NotificationsListResponse) ProtoMessage ¶ added in v1.0.1
func (*NotificationsListResponse) ProtoMessage()
func (*NotificationsListResponse) ProtoReflect ¶ added in v1.0.1
func (x *NotificationsListResponse) ProtoReflect() protoreflect.Message
func (*NotificationsListResponse) Reset ¶ added in v1.0.1
func (x *NotificationsListResponse) Reset()
func (*NotificationsListResponse) String ¶ added in v1.0.1
func (x *NotificationsListResponse) String() string
type PaginationRequest ¶
type PaginationRequest struct {
Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
Offset uint32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
// contains filtered or unexported fields
}
func (*PaginationRequest) Descriptor
deprecated
func (*PaginationRequest) Descriptor() ([]byte, []int)
Deprecated: Use PaginationRequest.ProtoReflect.Descriptor instead.
func (*PaginationRequest) GetLimit ¶
func (x *PaginationRequest) GetLimit() uint32
func (*PaginationRequest) GetOffset ¶
func (x *PaginationRequest) GetOffset() uint32
func (*PaginationRequest) ProtoMessage ¶
func (*PaginationRequest) ProtoMessage()
func (*PaginationRequest) ProtoReflect ¶
func (x *PaginationRequest) ProtoReflect() protoreflect.Message
func (*PaginationRequest) Reset ¶
func (x *PaginationRequest) Reset()
func (*PaginationRequest) String ¶
func (x *PaginationRequest) String() string
type PaginationResult ¶
type PaginationResult struct {
Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
Offset uint32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
Count uint32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
// contains filtered or unexported fields
}
func (*PaginationResult) Descriptor
deprecated
func (*PaginationResult) Descriptor() ([]byte, []int)
Deprecated: Use PaginationResult.ProtoReflect.Descriptor instead.
func (*PaginationResult) GetCount ¶
func (x *PaginationResult) GetCount() uint32
func (*PaginationResult) GetLimit ¶
func (x *PaginationResult) GetLimit() uint32
func (*PaginationResult) GetOffset ¶
func (x *PaginationResult) GetOffset() uint32
func (*PaginationResult) ProtoMessage ¶
func (*PaginationResult) ProtoMessage()
func (*PaginationResult) ProtoReflect ¶
func (x *PaginationResult) ProtoReflect() protoreflect.Message
func (*PaginationResult) Reset ¶
func (x *PaginationResult) Reset()
func (*PaginationResult) String ¶
func (x *PaginationResult) String() string
type Rpc ¶
type Rpc interface {
// events
EventCreate(context.Context, *EventCreateRequest) (*EventCreateResponse, error)
EventUpdate(context.Context, *EventUpdateRequest) (*Empty, error)
EventDelete(context.Context, *EventDeleteRequest) (*Empty, error)
EventsList(context.Context, *EventsListRequest) (*EventsListResponse, error)
EventGetDetails(context.Context, *EventGetDetailsRequest) (*EventGetDetailsResponse, error)
EventListItems(context.Context, *EventListItemsRequest) (*EventListItemsResponse, error)
EventListEarmarks(context.Context, *EventListEarmarksRequest) (*EventListEarmarksResponse, error)
// event-items
EventAddItem(context.Context, *EventAddItemRequest) (*EventAddItemResponse, error)
EventUpdateItem(context.Context, *EventUpdateItemRequest) (*EventUpdateItemResponse, error)
EventRemoveItem(context.Context, *EventRemoveItemRequest) (*Empty, error)
// earmarks
EarmarkCreate(context.Context, *EarmarkCreateRequest) (*EarmarkCreateResponse, error)
EarmarkGetDetails(context.Context, *EarmarkGetDetailsRequest) (*EarmarkGetDetailsResponse, error)
EarmarkRemove(context.Context, *EarmarkRemoveRequest) (*Empty, error)
EarmarksList(context.Context, *EarmarksListRequest) (*EarmarksListResponse, error)
// favorites
FavoriteAdd(context.Context, *FavoriteCreateRequest) (*FavoriteCreateResponse, error)
FavoriteRemove(context.Context, *FavoriteRemoveRequest) (*Empty, error)
FavoriteListEvents(context.Context, *FavoriteListEventsRequest) (*FavoriteListEventsResponse, error)
// notifications
NotificationDelete(context.Context, *NotificationDeleteRequest) (*Empty, error)
NotificationsDeleteAll(context.Context, *Empty) (*Empty, error)
NotificationsList(context.Context, *NotificationsListRequest) (*NotificationsListResponse, error)
}
func NewRpcJSONClient ¶
func NewRpcJSONClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) Rpc
NewRpcJSONClient creates a JSON client that implements the Rpc interface. It communicates using JSON and can be configured with a custom HTTPClient.
func NewRpcProtobufClient ¶
func NewRpcProtobufClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) Rpc
NewRpcProtobufClient creates a Protobuf client that implements the Rpc interface. It communicates using Protobuf and can be configured with a custom HTTPClient.
type TimestampTZ ¶
type TimestampTZ struct {
Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` // timestamp
Tz string `protobuf:"bytes,2,opt,name=tz,proto3" json:"tz,omitempty"` // timezone
// contains filtered or unexported fields
}
func (*TimestampTZ) Descriptor
deprecated
func (*TimestampTZ) Descriptor() ([]byte, []int)
Deprecated: Use TimestampTZ.ProtoReflect.Descriptor instead.
func (*TimestampTZ) GetTs ¶
func (x *TimestampTZ) GetTs() *timestamppb.Timestamp
func (*TimestampTZ) GetTz ¶
func (x *TimestampTZ) GetTz() string
func (*TimestampTZ) ProtoMessage ¶
func (*TimestampTZ) ProtoMessage()
func (*TimestampTZ) ProtoReflect ¶
func (x *TimestampTZ) ProtoReflect() protoreflect.Message
func (*TimestampTZ) Reset ¶
func (x *TimestampTZ) Reset()
func (*TimestampTZ) String ¶
func (x *TimestampTZ) String() string
type TwirpServer ¶
type TwirpServer interface {
http.Handler
// ServiceDescriptor returns gzipped bytes describing the .proto file that
// this service was generated from. Once unzipped, the bytes can be
// unmarshalled as a
// google.golang.org/protobuf/types/descriptorpb.FileDescriptorProto.
//
// The returned integer is the index of this particular service within that
// FileDescriptorProto's 'Service' slice of ServiceDescriptorProtos. This is a
// low-level field, expected to be used for reflection.
ServiceDescriptor() ([]byte, int)
// ProtocGenTwirpVersion is the semantic version string of the version of
// twirp used to generate this file.
ProtocGenTwirpVersion() string
// PathPrefix returns the HTTP URL path prefix for all methods handled by this
// service. This can be used with an HTTP mux to route Twirp requests.
// The path prefix is in the form: "/<prefix>/<package>.<Service>/"
// that is, everything in a Twirp route except for the <Method> at the end.
PathPrefix() string
}
TwirpServer is the interface generated server structs will support: they're HTTP handlers with additional methods for accessing metadata about the service. Those accessors are a low-level API for building reflection tools. Most people can think of TwirpServers as just http.Handlers.
func NewRpcServer ¶
func NewRpcServer(svc Rpc, opts ...interface{}) TwirpServer
NewRpcServer builds a TwirpServer that can be used as an http.Handler to handle HTTP requests that are routed to the right method in the provided svc implementation. The opts are twirp.ServerOption modifiers, for example twirp.WithServerHooks(hooks).