Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterItemsServiceServer(s grpc.ServiceRegistrar, srv ItemsServiceServer)
- func RegisterNotesServiceServer(s grpc.ServiceRegistrar, srv NotesServiceServer)
- func RegisterStatusServiceServer(s grpc.ServiceRegistrar, srv StatusServiceServer)
- type AddItemRequest
- func (*AddItemRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddItemRequest) GetDescription() string
- func (x *AddItemRequest) GetInitialNoteText() string
- func (x *AddItemRequest) GetInitialStatus() *Status
- func (x *AddItemRequest) GetInitialStatusId() string
- func (x *AddItemRequest) GetName() string
- func (*AddItemRequest) ProtoMessage()
- func (x *AddItemRequest) ProtoReflect() protoreflect.Message
- func (x *AddItemRequest) Reset()
- func (x *AddItemRequest) String() string
- type AddItemResponse
- type AddNoteRequest
- func (*AddNoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddNoteRequest) GetItemId() string
- func (x *AddNoteRequest) GetNoteText() string
- func (*AddNoteRequest) ProtoMessage()
- func (x *AddNoteRequest) ProtoReflect() protoreflect.Message
- func (x *AddNoteRequest) Reset()
- func (x *AddNoteRequest) String() string
- type AddNoteResponse
- type AddStatusRequest
- func (*AddStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddStatusRequest) GetColor() string
- func (x *AddStatusRequest) GetDescription() string
- func (x *AddStatusRequest) GetKind() StatusKind
- func (x *AddStatusRequest) GetName() string
- func (*AddStatusRequest) ProtoMessage()
- func (x *AddStatusRequest) ProtoReflect() protoreflect.Message
- func (x *AddStatusRequest) Reset()
- func (x *AddStatusRequest) String() string
- type AddStatusResponse
- type DeleteItemRequest
- type DeleteItemResponse
- type DeleteNoteRequest
- type DeleteNoteResponse
- type DeleteStatusRequest
- func (*DeleteStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteStatusRequest) GetStatusId() string
- func (*DeleteStatusRequest) ProtoMessage()
- func (x *DeleteStatusRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteStatusRequest) Reset()
- func (x *DeleteStatusRequest) String() string
- type DeleteStatusResponse
- type GetItemRequest
- type GetItemResponse
- type GetNoteRequest
- type GetNoteResponse
- type GetStatusRequest
- type GetStatusResponse
- type Item
- func (*Item) Descriptor() ([]byte, []int)deprecated
- func (x *Item) GetDescription() string
- func (x *Item) GetId() string
- func (x *Item) GetName() string
- func (x *Item) GetNotes() []*Note
- func (x *Item) GetStatus() *Status
- func (x *Item) GetTimestamps() *Timestamps
- func (*Item) ProtoMessage()
- func (x *Item) ProtoReflect() protoreflect.Message
- func (x *Item) Reset()
- func (x *Item) String() string
- type ItemsServiceClient
- type ItemsServiceServer
- type ListItemsRequest
- func (*ListItemsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListItemsRequest) GetExtended() bool
- func (x *ListItemsRequest) GetKinds() []StatusKind
- func (x *ListItemsRequest) GetStatusIds() []string
- func (*ListItemsRequest) ProtoMessage()
- func (x *ListItemsRequest) ProtoReflect() protoreflect.Message
- func (x *ListItemsRequest) Reset()
- func (x *ListItemsRequest) String() string
- type ListItemsResponse
- type ListNotesRequest
- type ListNotesResponse
- type ListStatusRequest
- func (*ListStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListStatusRequest) GetKinds() []StatusKind
- func (*ListStatusRequest) ProtoMessage()
- func (x *ListStatusRequest) ProtoReflect() protoreflect.Message
- func (x *ListStatusRequest) Reset()
- func (x *ListStatusRequest) String() string
- type ListStatusResponse
- func (*ListStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListStatusResponse) GetStatuses() []*Status
- func (*ListStatusResponse) ProtoMessage()
- func (x *ListStatusResponse) ProtoReflect() protoreflect.Message
- func (x *ListStatusResponse) Reset()
- func (x *ListStatusResponse) String() string
- type Note
- type NotesServiceClient
- type NotesServiceServer
- type Status
- func (*Status) Descriptor() ([]byte, []int)deprecated
- func (x *Status) GetColor() string
- func (x *Status) GetDescription() string
- func (x *Status) GetId() string
- func (x *Status) GetKind() StatusKind
- func (x *Status) GetName() string
- func (x *Status) GetTimestamps() *Timestamps
- func (*Status) ProtoMessage()
- func (x *Status) ProtoReflect() protoreflect.Message
- func (x *Status) Reset()
- func (x *Status) String() string
- type StatusKind
- type StatusServiceClient
- type StatusServiceServer
- type Timestamps
- func (*Timestamps) Descriptor() ([]byte, []int)deprecated
- func (x *Timestamps) GetCreated() *timestamppb.Timestamp
- func (x *Timestamps) GetDeleted() *timestamppb.Timestamp
- func (x *Timestamps) GetUpdated() *timestamppb.Timestamp
- func (*Timestamps) ProtoMessage()
- func (x *Timestamps) ProtoReflect() protoreflect.Message
- func (x *Timestamps) Reset()
- func (x *Timestamps) String() string
- type UnimplementedItemsServiceServer
- func (UnimplementedItemsServiceServer) AddItem(context.Context, *AddItemRequest) (*AddItemResponse, error)
- func (UnimplementedItemsServiceServer) DeleteItem(context.Context, *DeleteItemRequest) (*DeleteItemResponse, error)
- func (UnimplementedItemsServiceServer) GetItem(context.Context, *GetItemRequest) (*GetItemResponse, error)
- func (UnimplementedItemsServiceServer) ListItems(context.Context, *ListItemsRequest) (*ListItemsResponse, error)
- func (UnimplementedItemsServiceServer) UpdateItem(context.Context, *UpdateItemRequest) (*UpdateItemResponse, error)
- type UnimplementedNotesServiceServer
- func (UnimplementedNotesServiceServer) AddNote(context.Context, *AddNoteRequest) (*AddNoteResponse, error)
- func (UnimplementedNotesServiceServer) DeleteNote(context.Context, *DeleteNoteRequest) (*DeleteNoteResponse, error)
- func (UnimplementedNotesServiceServer) GetNote(context.Context, *GetNoteRequest) (*GetNoteResponse, error)
- func (UnimplementedNotesServiceServer) ListNotes(context.Context, *ListNotesRequest) (*ListNotesResponse, error)
- func (UnimplementedNotesServiceServer) UpdateNote(context.Context, *UpdateNoteRequest) (*UpdateNoteResponse, error)
- type UnimplementedStatusServiceServer
- func (UnimplementedStatusServiceServer) AddStatus(context.Context, *AddStatusRequest) (*AddStatusResponse, error)
- func (UnimplementedStatusServiceServer) DeleteStatus(context.Context, *DeleteStatusRequest) (*DeleteStatusResponse, error)
- func (UnimplementedStatusServiceServer) GetStatus(context.Context, *GetStatusRequest) (*GetStatusResponse, error)
- func (UnimplementedStatusServiceServer) ListStatus(context.Context, *ListStatusRequest) (*ListStatusResponse, error)
- func (UnimplementedStatusServiceServer) UpdateStatus(context.Context, *UpdateStatusRequest) (*UpdateStatusResponse, error)
- type UnsafeItemsServiceServer
- type UnsafeNotesServiceServer
- type UnsafeStatusServiceServer
- type UpdateItemRequest
- func (*UpdateItemRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateItemRequest) GetDescription() string
- func (x *UpdateItemRequest) GetItemId() string
- func (x *UpdateItemRequest) GetName() string
- func (x *UpdateItemRequest) GetStatusId() string
- func (*UpdateItemRequest) ProtoMessage()
- func (x *UpdateItemRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateItemRequest) Reset()
- func (x *UpdateItemRequest) String() string
- type UpdateItemResponse
- type UpdateNoteRequest
- func (*UpdateNoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateNoteRequest) GetNoteId() string
- func (x *UpdateNoteRequest) GetNoteText() string
- func (*UpdateNoteRequest) ProtoMessage()
- func (x *UpdateNoteRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateNoteRequest) Reset()
- func (x *UpdateNoteRequest) String() string
- type UpdateNoteResponse
- type UpdateStatusRequest
- func (*UpdateStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateStatusRequest) GetColor() string
- func (x *UpdateStatusRequest) GetDescription() string
- func (x *UpdateStatusRequest) GetKind() StatusKind
- func (x *UpdateStatusRequest) GetName() string
- func (x *UpdateStatusRequest) GetStatusId() string
- func (*UpdateStatusRequest) ProtoMessage()
- func (x *UpdateStatusRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateStatusRequest) Reset()
- func (x *UpdateStatusRequest) String() string
- type UpdateStatusResponse
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAvatarUrl() string
- func (x *User) GetEmailAddress() string
- func (x *User) GetFirstName() string
- func (x *User) GetId() string
- func (x *User) GetLastLogin() *timestamppb.Timestamp
- func (x *User) GetLastName() string
- func (x *User) GetPassword() string
- func (x *User) GetTimestamps() *Timestamps
- func (x *User) GetUsername() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
Constants ¶
const ( ItemsService_GetItem_FullMethodName = "/statusthing.v1.ItemsService/GetItem" ItemsService_ListItems_FullMethodName = "/statusthing.v1.ItemsService/ListItems" ItemsService_AddItem_FullMethodName = "/statusthing.v1.ItemsService/AddItem" ItemsService_UpdateItem_FullMethodName = "/statusthing.v1.ItemsService/UpdateItem" ItemsService_DeleteItem_FullMethodName = "/statusthing.v1.ItemsService/DeleteItem" )
const ( StatusService_GetStatus_FullMethodName = "/statusthing.v1.StatusService/GetStatus" StatusService_ListStatus_FullMethodName = "/statusthing.v1.StatusService/ListStatus" StatusService_AddStatus_FullMethodName = "/statusthing.v1.StatusService/AddStatus" StatusService_UpdateStatus_FullMethodName = "/statusthing.v1.StatusService/UpdateStatus" StatusService_DeleteStatus_FullMethodName = "/statusthing.v1.StatusService/DeleteStatus" )
const ( NotesService_GetNote_FullMethodName = "/statusthing.v1.NotesService/GetNote" NotesService_ListNotes_FullMethodName = "/statusthing.v1.NotesService/ListNotes" NotesService_AddNote_FullMethodName = "/statusthing.v1.NotesService/AddNote" NotesService_UpdateNote_FullMethodName = "/statusthing.v1.NotesService/UpdateNote" NotesService_DeleteNote_FullMethodName = "/statusthing.v1.NotesService/DeleteNote" )
Variables ¶
var ( StatusKind_name = map[int32]string{ 0: "STATUS_KIND_UNKNOWN", 1: "STATUS_KIND_UP", 2: "STATUS_KIND_DOWN", 3: "STATUS_KIND_WARNING", 4: "STATUS_KIND_UNAVAILABLE", 5: "STATUS_KIND_AVAILABLE", 6: "STATUS_KIND_INVESTIGATING", 7: "STATUS_KIND_OBSERVING", 8: "STATUS_KIND_CREATED", 9: "STATUS_KIND_ONLINE", 10: "STATUS_KIND_OFFLINE", 11: "STATUS_KIND_DECOMM", } StatusKind_value = map[string]int32{ "STATUS_KIND_UNKNOWN": 0, "STATUS_KIND_UP": 1, "STATUS_KIND_DOWN": 2, "STATUS_KIND_WARNING": 3, "STATUS_KIND_UNAVAILABLE": 4, "STATUS_KIND_AVAILABLE": 5, "STATUS_KIND_INVESTIGATING": 6, "STATUS_KIND_OBSERVING": 7, "STATUS_KIND_CREATED": 8, "STATUS_KIND_ONLINE": 9, "STATUS_KIND_OFFLINE": 10, "STATUS_KIND_DECOMM": 11, } )
Enum value maps for StatusKind.
var File_statusthing_v1_services_proto protoreflect.FileDescriptor
var File_statusthing_v1_types_proto protoreflect.FileDescriptor
var ItemsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "statusthing.v1.ItemsService", HandlerType: (*ItemsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetItem", Handler: _ItemsService_GetItem_Handler, }, { MethodName: "ListItems", Handler: _ItemsService_ListItems_Handler, }, { MethodName: "AddItem", Handler: _ItemsService_AddItem_Handler, }, { MethodName: "UpdateItem", Handler: _ItemsService_UpdateItem_Handler, }, { MethodName: "DeleteItem", Handler: _ItemsService_DeleteItem_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "statusthing/v1/services.proto", }
ItemsService_ServiceDesc is the grpc.ServiceDesc for ItemsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var NotesService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "statusthing.v1.NotesService", HandlerType: (*NotesServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetNote", Handler: _NotesService_GetNote_Handler, }, { MethodName: "ListNotes", Handler: _NotesService_ListNotes_Handler, }, { MethodName: "AddNote", Handler: _NotesService_AddNote_Handler, }, { MethodName: "UpdateNote", Handler: _NotesService_UpdateNote_Handler, }, { MethodName: "DeleteNote", Handler: _NotesService_DeleteNote_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "statusthing/v1/services.proto", }
NotesService_ServiceDesc is the grpc.ServiceDesc for NotesService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var StatusService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "statusthing.v1.StatusService", HandlerType: (*StatusServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetStatus", Handler: _StatusService_GetStatus_Handler, }, { MethodName: "ListStatus", Handler: _StatusService_ListStatus_Handler, }, { MethodName: "AddStatus", Handler: _StatusService_AddStatus_Handler, }, { MethodName: "UpdateStatus", Handler: _StatusService_UpdateStatus_Handler, }, { MethodName: "DeleteStatus", Handler: _StatusService_DeleteStatus_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "statusthing/v1/services.proto", }
StatusService_ServiceDesc is the grpc.ServiceDesc for StatusService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterItemsServiceServer ¶
func RegisterItemsServiceServer(s grpc.ServiceRegistrar, srv ItemsServiceServer)
func RegisterNotesServiceServer ¶
func RegisterNotesServiceServer(s grpc.ServiceRegistrar, srv NotesServiceServer)
func RegisterStatusServiceServer ¶
func RegisterStatusServiceServer(s grpc.ServiceRegistrar, srv StatusServiceServer)
Types ¶
type AddItemRequest ¶
type AddItemRequest struct { // the name Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // the description Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // set the initial status to the provided status with the provided id InitialStatusId string `protobuf:"bytes,3,opt,name=initial_status_id,json=initialStatusId,proto3" json:"initial_status_id,omitempty"` // create a new status as described and set the initial status to that status InitialStatus *Status `protobuf:"bytes,4,opt,name=initial_status,json=initialStatus,proto3" json:"initial_status,omitempty"` // create a new note to add immediately to newly created item InitialNoteText string `protobuf:"bytes,5,opt,name=initial_note_text,json=initialNoteText,proto3" json:"initial_note_text,omitempty"` // contains filtered or unexported fields }
func (*AddItemRequest) Descriptor
deprecated
func (*AddItemRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddItemRequest.ProtoReflect.Descriptor instead.
func (*AddItemRequest) GetDescription ¶
func (x *AddItemRequest) GetDescription() string
func (*AddItemRequest) GetInitialNoteText ¶
func (x *AddItemRequest) GetInitialNoteText() string
func (*AddItemRequest) GetInitialStatus ¶
func (x *AddItemRequest) GetInitialStatus() *Status
func (*AddItemRequest) GetInitialStatusId ¶
func (x *AddItemRequest) GetInitialStatusId() string
func (*AddItemRequest) GetName ¶
func (x *AddItemRequest) GetName() string
func (*AddItemRequest) ProtoMessage ¶
func (*AddItemRequest) ProtoMessage()
func (*AddItemRequest) ProtoReflect ¶
func (x *AddItemRequest) ProtoReflect() protoreflect.Message
func (*AddItemRequest) Reset ¶
func (x *AddItemRequest) Reset()
func (*AddItemRequest) String ¶
func (x *AddItemRequest) String() string
type AddItemResponse ¶
type AddItemResponse struct { Item *Item `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` // contains filtered or unexported fields }
func (*AddItemResponse) Descriptor
deprecated
func (*AddItemResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddItemResponse.ProtoReflect.Descriptor instead.
func (*AddItemResponse) GetItem ¶
func (x *AddItemResponse) GetItem() *Item
func (*AddItemResponse) ProtoMessage ¶
func (*AddItemResponse) ProtoMessage()
func (*AddItemResponse) ProtoReflect ¶
func (x *AddItemResponse) ProtoReflect() protoreflect.Message
func (*AddItemResponse) Reset ¶
func (x *AddItemResponse) Reset()
func (*AddItemResponse) String ¶
func (x *AddItemResponse) String() string
type AddNoteRequest ¶
type AddNoteRequest struct { // the id of the item to add the note to ItemId string `protobuf:"bytes,1,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"` // the text of the new note NoteText string `protobuf:"bytes,2,opt,name=note_text,json=noteText,proto3" json:"note_text,omitempty"` // contains filtered or unexported fields }
func (*AddNoteRequest) Descriptor
deprecated
func (*AddNoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddNoteRequest.ProtoReflect.Descriptor instead.
func (*AddNoteRequest) GetItemId ¶
func (x *AddNoteRequest) GetItemId() string
func (*AddNoteRequest) GetNoteText ¶
func (x *AddNoteRequest) GetNoteText() string
func (*AddNoteRequest) ProtoMessage ¶
func (*AddNoteRequest) ProtoMessage()
func (*AddNoteRequest) ProtoReflect ¶
func (x *AddNoteRequest) ProtoReflect() protoreflect.Message
func (*AddNoteRequest) Reset ¶
func (x *AddNoteRequest) Reset()
func (*AddNoteRequest) String ¶
func (x *AddNoteRequest) String() string
type AddNoteResponse ¶
type AddNoteResponse struct { // the added note Note *Note `protobuf:"bytes,1,opt,name=note,proto3" json:"note,omitempty"` // contains filtered or unexported fields }
func (*AddNoteResponse) Descriptor
deprecated
func (*AddNoteResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddNoteResponse.ProtoReflect.Descriptor instead.
func (*AddNoteResponse) GetNote ¶
func (x *AddNoteResponse) GetNote() *Note
func (*AddNoteResponse) ProtoMessage ¶
func (*AddNoteResponse) ProtoMessage()
func (*AddNoteResponse) ProtoReflect ¶
func (x *AddNoteResponse) ProtoReflect() protoreflect.Message
func (*AddNoteResponse) Reset ¶
func (x *AddNoteResponse) Reset()
func (*AddNoteResponse) String ¶
func (x *AddNoteResponse) String() string
type AddStatusRequest ¶
type AddStatusRequest struct { // the name of the new status Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // the optional description of the new status Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // the optional color of the new status Color string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty"` // the kind of the new status Kind StatusKind `protobuf:"varint,4,opt,name=kind,proto3,enum=statusthing.v1.StatusKind" json:"kind,omitempty"` // contains filtered or unexported fields }
func (*AddStatusRequest) Descriptor
deprecated
func (*AddStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddStatusRequest.ProtoReflect.Descriptor instead.
func (*AddStatusRequest) GetColor ¶
func (x *AddStatusRequest) GetColor() string
func (*AddStatusRequest) GetDescription ¶
func (x *AddStatusRequest) GetDescription() string
func (*AddStatusRequest) GetKind ¶
func (x *AddStatusRequest) GetKind() StatusKind
func (*AddStatusRequest) GetName ¶
func (x *AddStatusRequest) GetName() string
func (*AddStatusRequest) ProtoMessage ¶
func (*AddStatusRequest) ProtoMessage()
func (*AddStatusRequest) ProtoReflect ¶
func (x *AddStatusRequest) ProtoReflect() protoreflect.Message
func (*AddStatusRequest) Reset ¶
func (x *AddStatusRequest) Reset()
func (*AddStatusRequest) String ¶
func (x *AddStatusRequest) String() string
type AddStatusResponse ¶
type AddStatusResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*AddStatusResponse) Descriptor
deprecated
func (*AddStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddStatusResponse.ProtoReflect.Descriptor instead.
func (*AddStatusResponse) GetStatus ¶
func (x *AddStatusResponse) GetStatus() *Status
func (*AddStatusResponse) ProtoMessage ¶
func (*AddStatusResponse) ProtoMessage()
func (*AddStatusResponse) ProtoReflect ¶
func (x *AddStatusResponse) ProtoReflect() protoreflect.Message
func (*AddStatusResponse) Reset ¶
func (x *AddStatusResponse) Reset()
func (*AddStatusResponse) String ¶
func (x *AddStatusResponse) String() string
type DeleteItemRequest ¶
type DeleteItemRequest struct { // the id of the item to delte ItemId string `protobuf:"bytes,1,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteItemRequest) Descriptor
deprecated
func (*DeleteItemRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteItemRequest.ProtoReflect.Descriptor instead.
func (*DeleteItemRequest) GetItemId ¶
func (x *DeleteItemRequest) GetItemId() string
func (*DeleteItemRequest) ProtoMessage ¶
func (*DeleteItemRequest) ProtoMessage()
func (*DeleteItemRequest) ProtoReflect ¶
func (x *DeleteItemRequest) ProtoReflect() protoreflect.Message
func (*DeleteItemRequest) Reset ¶
func (x *DeleteItemRequest) Reset()
func (*DeleteItemRequest) String ¶
func (x *DeleteItemRequest) String() string
type DeleteItemResponse ¶
type DeleteItemResponse struct {
// contains filtered or unexported fields
}
func (*DeleteItemResponse) Descriptor
deprecated
func (*DeleteItemResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteItemResponse.ProtoReflect.Descriptor instead.
func (*DeleteItemResponse) ProtoMessage ¶
func (*DeleteItemResponse) ProtoMessage()
func (*DeleteItemResponse) ProtoReflect ¶
func (x *DeleteItemResponse) ProtoReflect() protoreflect.Message
func (*DeleteItemResponse) Reset ¶
func (x *DeleteItemResponse) Reset()
func (*DeleteItemResponse) String ¶
func (x *DeleteItemResponse) String() string
type DeleteNoteRequest ¶
type DeleteNoteRequest struct { // the id of the note to delete NoteId string `protobuf:"bytes,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteNoteRequest) Descriptor
deprecated
func (*DeleteNoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteNoteRequest.ProtoReflect.Descriptor instead.
func (*DeleteNoteRequest) GetNoteId ¶
func (x *DeleteNoteRequest) GetNoteId() string
func (*DeleteNoteRequest) ProtoMessage ¶
func (*DeleteNoteRequest) ProtoMessage()
func (*DeleteNoteRequest) ProtoReflect ¶
func (x *DeleteNoteRequest) ProtoReflect() protoreflect.Message
func (*DeleteNoteRequest) Reset ¶
func (x *DeleteNoteRequest) Reset()
func (*DeleteNoteRequest) String ¶
func (x *DeleteNoteRequest) String() string
type DeleteNoteResponse ¶
type DeleteNoteResponse struct {
// contains filtered or unexported fields
}
func (*DeleteNoteResponse) Descriptor
deprecated
func (*DeleteNoteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteNoteResponse.ProtoReflect.Descriptor instead.
func (*DeleteNoteResponse) ProtoMessage ¶
func (*DeleteNoteResponse) ProtoMessage()
func (*DeleteNoteResponse) ProtoReflect ¶
func (x *DeleteNoteResponse) ProtoReflect() protoreflect.Message
func (*DeleteNoteResponse) Reset ¶
func (x *DeleteNoteResponse) Reset()
func (*DeleteNoteResponse) String ¶
func (x *DeleteNoteResponse) String() string
type DeleteStatusRequest ¶
type DeleteStatusRequest struct { // id of the status to delete StatusId string `protobuf:"bytes,1,opt,name=status_id,json=statusId,proto3" json:"status_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteStatusRequest) Descriptor
deprecated
func (*DeleteStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteStatusRequest.ProtoReflect.Descriptor instead.
func (*DeleteStatusRequest) GetStatusId ¶
func (x *DeleteStatusRequest) GetStatusId() string
func (*DeleteStatusRequest) ProtoMessage ¶
func (*DeleteStatusRequest) ProtoMessage()
func (*DeleteStatusRequest) ProtoReflect ¶
func (x *DeleteStatusRequest) ProtoReflect() protoreflect.Message
func (*DeleteStatusRequest) Reset ¶
func (x *DeleteStatusRequest) Reset()
func (*DeleteStatusRequest) String ¶
func (x *DeleteStatusRequest) String() string
type DeleteStatusResponse ¶
type DeleteStatusResponse struct {
// contains filtered or unexported fields
}
func (*DeleteStatusResponse) Descriptor
deprecated
func (*DeleteStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteStatusResponse.ProtoReflect.Descriptor instead.
func (*DeleteStatusResponse) ProtoMessage ¶
func (*DeleteStatusResponse) ProtoMessage()
func (*DeleteStatusResponse) ProtoReflect ¶
func (x *DeleteStatusResponse) ProtoReflect() protoreflect.Message
func (*DeleteStatusResponse) Reset ¶
func (x *DeleteStatusResponse) Reset()
func (*DeleteStatusResponse) String ¶
func (x *DeleteStatusResponse) String() string
type GetItemRequest ¶
type GetItemRequest struct { ItemId string `protobuf:"bytes,1,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"` // contains filtered or unexported fields }
func (*GetItemRequest) Descriptor
deprecated
func (*GetItemRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetItemRequest.ProtoReflect.Descriptor instead.
func (*GetItemRequest) GetItemId ¶
func (x *GetItemRequest) GetItemId() string
func (*GetItemRequest) ProtoMessage ¶
func (*GetItemRequest) ProtoMessage()
func (*GetItemRequest) ProtoReflect ¶
func (x *GetItemRequest) ProtoReflect() protoreflect.Message
func (*GetItemRequest) Reset ¶
func (x *GetItemRequest) Reset()
func (*GetItemRequest) String ¶
func (x *GetItemRequest) String() string
type GetItemResponse ¶
type GetItemResponse struct { Item *Item `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` // contains filtered or unexported fields }
func (*GetItemResponse) Descriptor
deprecated
func (*GetItemResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetItemResponse.ProtoReflect.Descriptor instead.
func (*GetItemResponse) GetItem ¶
func (x *GetItemResponse) GetItem() *Item
func (*GetItemResponse) ProtoMessage ¶
func (*GetItemResponse) ProtoMessage()
func (*GetItemResponse) ProtoReflect ¶
func (x *GetItemResponse) ProtoReflect() protoreflect.Message
func (*GetItemResponse) Reset ¶
func (x *GetItemResponse) Reset()
func (*GetItemResponse) String ¶
func (x *GetItemResponse) String() string
type GetNoteRequest ¶
type GetNoteRequest struct { // the id of the note to get NoteId string `protobuf:"bytes,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"` // contains filtered or unexported fields }
func (*GetNoteRequest) Descriptor
deprecated
func (*GetNoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNoteRequest.ProtoReflect.Descriptor instead.
func (*GetNoteRequest) GetNoteId ¶
func (x *GetNoteRequest) GetNoteId() string
func (*GetNoteRequest) ProtoMessage ¶
func (*GetNoteRequest) ProtoMessage()
func (*GetNoteRequest) ProtoReflect ¶
func (x *GetNoteRequest) ProtoReflect() protoreflect.Message
func (*GetNoteRequest) Reset ¶
func (x *GetNoteRequest) Reset()
func (*GetNoteRequest) String ¶
func (x *GetNoteRequest) String() string
type GetNoteResponse ¶
type GetNoteResponse struct { Note *Note `protobuf:"bytes,1,opt,name=note,proto3" json:"note,omitempty"` // contains filtered or unexported fields }
func (*GetNoteResponse) Descriptor
deprecated
func (*GetNoteResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNoteResponse.ProtoReflect.Descriptor instead.
func (*GetNoteResponse) GetNote ¶
func (x *GetNoteResponse) GetNote() *Note
func (*GetNoteResponse) ProtoMessage ¶
func (*GetNoteResponse) ProtoMessage()
func (*GetNoteResponse) ProtoReflect ¶
func (x *GetNoteResponse) ProtoReflect() protoreflect.Message
func (*GetNoteResponse) Reset ¶
func (x *GetNoteResponse) Reset()
func (*GetNoteResponse) String ¶
func (x *GetNoteResponse) String() string
type GetStatusRequest ¶
type GetStatusRequest struct { // the id of the status to get StatusId string `protobuf:"bytes,1,opt,name=status_id,json=statusId,proto3" json:"status_id,omitempty"` // contains filtered or unexported fields }
func (*GetStatusRequest) Descriptor
deprecated
func (*GetStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStatusRequest.ProtoReflect.Descriptor instead.
func (*GetStatusRequest) GetStatusId ¶
func (x *GetStatusRequest) GetStatusId() string
func (*GetStatusRequest) ProtoMessage ¶
func (*GetStatusRequest) ProtoMessage()
func (*GetStatusRequest) ProtoReflect ¶
func (x *GetStatusRequest) ProtoReflect() protoreflect.Message
func (*GetStatusRequest) Reset ¶
func (x *GetStatusRequest) Reset()
func (*GetStatusRequest) String ¶
func (x *GetStatusRequest) String() string
type GetStatusResponse ¶
type GetStatusResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*GetStatusResponse) Descriptor
deprecated
func (*GetStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetStatusResponse.ProtoReflect.Descriptor instead.
func (*GetStatusResponse) GetStatus ¶
func (x *GetStatusResponse) GetStatus() *Status
func (*GetStatusResponse) ProtoMessage ¶
func (*GetStatusResponse) ProtoMessage()
func (*GetStatusResponse) ProtoReflect ¶
func (x *GetStatusResponse) ProtoReflect() protoreflect.Message
func (*GetStatusResponse) Reset ¶
func (x *GetStatusResponse) Reset()
func (*GetStatusResponse) String ¶
func (x *GetStatusResponse) String() string
type Item ¶
type Item struct { // the unique identifier Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // the name Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // the description Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // the status Status *Status `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` // any associated notes Notes []*Note `protobuf:"bytes,5,rep,name=notes,proto3" json:"notes,omitempty"` Timestamps *Timestamps `protobuf:"bytes,15,opt,name=timestamps,proto3" json:"timestamps,omitempty"` // contains filtered or unexported fields }
Item represents a status page entry
func (*Item) Descriptor
deprecated
func (*Item) GetDescription ¶
func (*Item) GetTimestamps ¶
func (x *Item) GetTimestamps() *Timestamps
func (*Item) ProtoMessage ¶
func (*Item) ProtoMessage()
func (*Item) ProtoReflect ¶
func (x *Item) ProtoReflect() protoreflect.Message
type ItemsServiceClient ¶
type ItemsServiceClient interface { // GetItem gets an Item by its Id GetItem(ctx context.Context, in *GetItemRequest, opts ...grpc.CallOption) (*GetItemResponse, error) // ListItems gets all known Items ListItems(ctx context.Context, in *ListItemsRequest, opts ...grpc.CallOption) (*ListItemsResponse, error) // AddItem adds a new Item AddItem(ctx context.Context, in *AddItemRequest, opts ...grpc.CallOption) (*AddItemResponse, error) // UpdateItem updates an existing Item UpdateItem(ctx context.Context, in *UpdateItemRequest, opts ...grpc.CallOption) (*UpdateItemResponse, error) // DeleteItem deletes an exisiting Item DeleteItem(ctx context.Context, in *DeleteItemRequest, opts ...grpc.CallOption) (*DeleteItemResponse, error) }
ItemsServiceClient is the client API for ItemsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewItemsServiceClient ¶
func NewItemsServiceClient(cc grpc.ClientConnInterface) ItemsServiceClient
type ItemsServiceServer ¶
type ItemsServiceServer interface { // GetItem gets an Item by its Id GetItem(context.Context, *GetItemRequest) (*GetItemResponse, error) // ListItems gets all known Items ListItems(context.Context, *ListItemsRequest) (*ListItemsResponse, error) // AddItem adds a new Item AddItem(context.Context, *AddItemRequest) (*AddItemResponse, error) // UpdateItem updates an existing Item UpdateItem(context.Context, *UpdateItemRequest) (*UpdateItemResponse, error) // DeleteItem deletes an exisiting Item DeleteItem(context.Context, *DeleteItemRequest) (*DeleteItemResponse, error) // contains filtered or unexported methods }
ItemsServiceServer is the server API for ItemsService service. All implementations must embed UnimplementedItemsServiceServer for forward compatibility
type ListItemsRequest ¶
type ListItemsRequest struct { // return results having a status with any of the provided ids StatusIds []string `protobuf:"bytes,1,rep,name=status_ids,json=statusIds,proto3" json:"status_ids,omitempty"` // return results having any of the provided [StatusKind] Kinds []StatusKind `protobuf:"varint,2,rep,packed,name=kinds,proto3,enum=statusthing.v1.StatusKind" json:"kinds,omitempty"` // by default notes are note returned. extended will include notes Extended bool `protobuf:"varint,14,opt,name=extended,proto3" json:"extended,omitempty"` // contains filtered or unexported fields }
func (*ListItemsRequest) Descriptor
deprecated
func (*ListItemsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListItemsRequest.ProtoReflect.Descriptor instead.
func (*ListItemsRequest) GetExtended ¶
func (x *ListItemsRequest) GetExtended() bool
func (*ListItemsRequest) GetKinds ¶
func (x *ListItemsRequest) GetKinds() []StatusKind
func (*ListItemsRequest) GetStatusIds ¶
func (x *ListItemsRequest) GetStatusIds() []string
func (*ListItemsRequest) ProtoMessage ¶
func (*ListItemsRequest) ProtoMessage()
func (*ListItemsRequest) ProtoReflect ¶
func (x *ListItemsRequest) ProtoReflect() protoreflect.Message
func (*ListItemsRequest) Reset ¶
func (x *ListItemsRequest) Reset()
func (*ListItemsRequest) String ¶
func (x *ListItemsRequest) String() string
type ListItemsResponse ¶
type ListItemsResponse struct { Items []*Item `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*ListItemsResponse) Descriptor
deprecated
func (*ListItemsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListItemsResponse.ProtoReflect.Descriptor instead.
func (*ListItemsResponse) GetItems ¶
func (x *ListItemsResponse) GetItems() []*Item
func (*ListItemsResponse) ProtoMessage ¶
func (*ListItemsResponse) ProtoMessage()
func (*ListItemsResponse) ProtoReflect ¶
func (x *ListItemsResponse) ProtoReflect() protoreflect.Message
func (*ListItemsResponse) Reset ¶
func (x *ListItemsResponse) Reset()
func (*ListItemsResponse) String ¶
func (x *ListItemsResponse) String() string
type ListNotesRequest ¶
type ListNotesRequest struct { // the id of the item to get all notes for ItemId string `protobuf:"bytes,1,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"` // contains filtered or unexported fields }
func (*ListNotesRequest) Descriptor
deprecated
func (*ListNotesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListNotesRequest.ProtoReflect.Descriptor instead.
func (*ListNotesRequest) GetItemId ¶
func (x *ListNotesRequest) GetItemId() string
func (*ListNotesRequest) ProtoMessage ¶
func (*ListNotesRequest) ProtoMessage()
func (*ListNotesRequest) ProtoReflect ¶
func (x *ListNotesRequest) ProtoReflect() protoreflect.Message
func (*ListNotesRequest) Reset ¶
func (x *ListNotesRequest) Reset()
func (*ListNotesRequest) String ¶
func (x *ListNotesRequest) String() string
type ListNotesResponse ¶
type ListNotesResponse struct { Notes []*Note `protobuf:"bytes,1,rep,name=notes,proto3" json:"notes,omitempty"` // contains filtered or unexported fields }
func (*ListNotesResponse) Descriptor
deprecated
func (*ListNotesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListNotesResponse.ProtoReflect.Descriptor instead.
func (*ListNotesResponse) GetNotes ¶
func (x *ListNotesResponse) GetNotes() []*Note
func (*ListNotesResponse) ProtoMessage ¶
func (*ListNotesResponse) ProtoMessage()
func (*ListNotesResponse) ProtoReflect ¶
func (x *ListNotesResponse) ProtoReflect() protoreflect.Message
func (*ListNotesResponse) Reset ¶
func (x *ListNotesResponse) Reset()
func (*ListNotesResponse) String ¶
func (x *ListNotesResponse) String() string
type ListStatusRequest ¶
type ListStatusRequest struct { // return results having any of the provided [StatusKind] Kinds []StatusKind `protobuf:"varint,1,rep,packed,name=kinds,proto3,enum=statusthing.v1.StatusKind" json:"kinds,omitempty"` // contains filtered or unexported fields }
func (*ListStatusRequest) Descriptor
deprecated
func (*ListStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListStatusRequest.ProtoReflect.Descriptor instead.
func (*ListStatusRequest) GetKinds ¶
func (x *ListStatusRequest) GetKinds() []StatusKind
func (*ListStatusRequest) ProtoMessage ¶
func (*ListStatusRequest) ProtoMessage()
func (*ListStatusRequest) ProtoReflect ¶
func (x *ListStatusRequest) ProtoReflect() protoreflect.Message
func (*ListStatusRequest) Reset ¶
func (x *ListStatusRequest) Reset()
func (*ListStatusRequest) String ¶
func (x *ListStatusRequest) String() string
type ListStatusResponse ¶
type ListStatusResponse struct { Statuses []*Status `protobuf:"bytes,1,rep,name=statuses,proto3" json:"statuses,omitempty"` // contains filtered or unexported fields }
func (*ListStatusResponse) Descriptor
deprecated
func (*ListStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListStatusResponse.ProtoReflect.Descriptor instead.
func (*ListStatusResponse) GetStatuses ¶
func (x *ListStatusResponse) GetStatuses() []*Status
func (*ListStatusResponse) ProtoMessage ¶
func (*ListStatusResponse) ProtoMessage()
func (*ListStatusResponse) ProtoReflect ¶
func (x *ListStatusResponse) ProtoReflect() protoreflect.Message
func (*ListStatusResponse) Reset ¶
func (x *ListStatusResponse) Reset()
func (*ListStatusResponse) String ¶
func (x *ListStatusResponse) String() string
type Note ¶
type Note struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` Timestamps *Timestamps `protobuf:"bytes,15,opt,name=timestamps,proto3" json:"timestamps,omitempty"` // contains filtered or unexported fields }
Note represents a message attached to a service
func (*Note) Descriptor
deprecated
func (*Note) GetTimestamps ¶
func (x *Note) GetTimestamps() *Timestamps
func (*Note) ProtoMessage ¶
func (*Note) ProtoMessage()
func (*Note) ProtoReflect ¶
func (x *Note) ProtoReflect() protoreflect.Message
type NotesServiceClient ¶
type NotesServiceClient interface { // GetNote gets a Note by its Id GetNote(ctx context.Context, in *GetNoteRequest, opts ...grpc.CallOption) (*GetNoteResponse, error) // ListNotes gets all Note for an Item ListNotes(ctx context.Context, in *ListNotesRequest, opts ...grpc.CallOption) (*ListNotesResponse, error) // AddNote adds a Note to an Item AddNote(ctx context.Context, in *AddNoteRequest, opts ...grpc.CallOption) (*AddNoteResponse, error) // UpdateNote updates an existing Note UpdateNote(ctx context.Context, in *UpdateNoteRequest, opts ...grpc.CallOption) (*UpdateNoteResponse, error) // DeleteNote deletes a Note from an Item DeleteNote(ctx context.Context, in *DeleteNoteRequest, opts ...grpc.CallOption) (*DeleteNoteResponse, error) }
NotesServiceClient is the client API for NotesService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewNotesServiceClient ¶
func NewNotesServiceClient(cc grpc.ClientConnInterface) NotesServiceClient
type NotesServiceServer ¶
type NotesServiceServer interface { // GetNote gets a Note by its Id GetNote(context.Context, *GetNoteRequest) (*GetNoteResponse, error) // ListNotes gets all Note for an Item ListNotes(context.Context, *ListNotesRequest) (*ListNotesResponse, error) // AddNote adds a Note to an Item AddNote(context.Context, *AddNoteRequest) (*AddNoteResponse, error) // UpdateNote updates an existing Note UpdateNote(context.Context, *UpdateNoteRequest) (*UpdateNoteResponse, error) // DeleteNote deletes a Note from an Item DeleteNote(context.Context, *DeleteNoteRequest) (*DeleteNoteResponse, error) // contains filtered or unexported methods }
NotesServiceServer is the server API for NotesService service. All implementations must embed UnimplementedNotesServiceServer for forward compatibility
type Status ¶
type Status struct { // the unique id of the status Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // the name of the status Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // friendly description of the status Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // how should the status be represented visually Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"` // the kind of status Kind StatusKind `protobuf:"varint,5,opt,name=kind,proto3,enum=statusthing.v1.StatusKind" json:"kind,omitempty"` Timestamps *Timestamps `protobuf:"bytes,15,opt,name=timestamps,proto3" json:"timestamps,omitempty"` // contains filtered or unexported fields }
Status represents the state a service can be in Status is opaque to the system
func (*Status) Descriptor
deprecated
func (*Status) GetDescription ¶
func (*Status) GetKind ¶
func (x *Status) GetKind() StatusKind
func (*Status) GetTimestamps ¶
func (x *Status) GetTimestamps() *Timestamps
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) ProtoReflect ¶
func (x *Status) ProtoReflect() protoreflect.Message
type StatusKind ¶
type StatusKind int32
StatusKind are enums for different unique states a thing could be in
const ( StatusKind_STATUS_KIND_UNKNOWN StatusKind = 0 StatusKind_STATUS_KIND_UP StatusKind = 1 StatusKind_STATUS_KIND_DOWN StatusKind = 2 StatusKind_STATUS_KIND_WARNING StatusKind = 3 StatusKind_STATUS_KIND_UNAVAILABLE StatusKind = 4 StatusKind_STATUS_KIND_AVAILABLE StatusKind = 5 StatusKind_STATUS_KIND_INVESTIGATING StatusKind = 6 StatusKind_STATUS_KIND_OBSERVING StatusKind = 7 StatusKind_STATUS_KIND_CREATED StatusKind = 8 StatusKind_STATUS_KIND_ONLINE StatusKind = 9 StatusKind_STATUS_KIND_OFFLINE StatusKind = 10 StatusKind_STATUS_KIND_DECOMM StatusKind = 11 )
func (StatusKind) Descriptor ¶
func (StatusKind) Descriptor() protoreflect.EnumDescriptor
func (StatusKind) Enum ¶
func (x StatusKind) Enum() *StatusKind
func (StatusKind) EnumDescriptor
deprecated
func (StatusKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use StatusKind.Descriptor instead.
func (StatusKind) Number ¶
func (x StatusKind) Number() protoreflect.EnumNumber
func (StatusKind) String ¶
func (x StatusKind) String() string
func (StatusKind) Type ¶
func (StatusKind) Type() protoreflect.EnumType
type StatusServiceClient ¶
type StatusServiceClient interface { // GetStatus gets a Status by its Id GetStatus(ctx context.Context, in *GetStatusRequest, opts ...grpc.CallOption) (*GetStatusResponse, error) // ListStatus gets all known Status ListStatus(ctx context.Context, in *ListStatusRequest, opts ...grpc.CallOption) (*ListStatusResponse, error) // AddStatus adds a new status AddStatus(ctx context.Context, in *AddStatusRequest, opts ...grpc.CallOption) (*AddStatusResponse, error) // UpdateStatus updates an existing status UpdateStatus(ctx context.Context, in *UpdateStatusRequest, opts ...grpc.CallOption) (*UpdateStatusResponse, error) // DeleteStatus deletes a Status DeleteStatus(ctx context.Context, in *DeleteStatusRequest, opts ...grpc.CallOption) (*DeleteStatusResponse, error) }
StatusServiceClient is the client API for StatusService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewStatusServiceClient ¶
func NewStatusServiceClient(cc grpc.ClientConnInterface) StatusServiceClient
type StatusServiceServer ¶
type StatusServiceServer interface { // GetStatus gets a Status by its Id GetStatus(context.Context, *GetStatusRequest) (*GetStatusResponse, error) // ListStatus gets all known Status ListStatus(context.Context, *ListStatusRequest) (*ListStatusResponse, error) // AddStatus adds a new status AddStatus(context.Context, *AddStatusRequest) (*AddStatusResponse, error) // UpdateStatus updates an existing status UpdateStatus(context.Context, *UpdateStatusRequest) (*UpdateStatusResponse, error) // DeleteStatus deletes a Status DeleteStatus(context.Context, *DeleteStatusRequest) (*DeleteStatusResponse, error) // contains filtered or unexported methods }
StatusServiceServer is the server API for StatusService service. All implementations must embed UnimplementedStatusServiceServer for forward compatibility
type Timestamps ¶
type Timestamps struct { Created *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created,proto3" json:"created,omitempty"` Updated *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=updated,proto3" json:"updated,omitempty"` Deleted *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=deleted,proto3" json:"deleted,omitempty"` // contains filtered or unexported fields }
func (*Timestamps) Descriptor
deprecated
func (*Timestamps) Descriptor() ([]byte, []int)
Deprecated: Use Timestamps.ProtoReflect.Descriptor instead.
func (*Timestamps) GetCreated ¶
func (x *Timestamps) GetCreated() *timestamppb.Timestamp
func (*Timestamps) GetDeleted ¶
func (x *Timestamps) GetDeleted() *timestamppb.Timestamp
func (*Timestamps) GetUpdated ¶
func (x *Timestamps) GetUpdated() *timestamppb.Timestamp
func (*Timestamps) ProtoMessage ¶
func (*Timestamps) ProtoMessage()
func (*Timestamps) ProtoReflect ¶
func (x *Timestamps) ProtoReflect() protoreflect.Message
func (*Timestamps) Reset ¶
func (x *Timestamps) Reset()
func (*Timestamps) String ¶
func (x *Timestamps) String() string
type UnimplementedItemsServiceServer ¶
type UnimplementedItemsServiceServer struct { }
UnimplementedItemsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedItemsServiceServer) AddItem ¶
func (UnimplementedItemsServiceServer) AddItem(context.Context, *AddItemRequest) (*AddItemResponse, error)
func (UnimplementedItemsServiceServer) DeleteItem ¶
func (UnimplementedItemsServiceServer) DeleteItem(context.Context, *DeleteItemRequest) (*DeleteItemResponse, error)
func (UnimplementedItemsServiceServer) GetItem ¶
func (UnimplementedItemsServiceServer) GetItem(context.Context, *GetItemRequest) (*GetItemResponse, error)
func (UnimplementedItemsServiceServer) ListItems ¶
func (UnimplementedItemsServiceServer) ListItems(context.Context, *ListItemsRequest) (*ListItemsResponse, error)
func (UnimplementedItemsServiceServer) UpdateItem ¶
func (UnimplementedItemsServiceServer) UpdateItem(context.Context, *UpdateItemRequest) (*UpdateItemResponse, error)
type UnimplementedNotesServiceServer ¶
type UnimplementedNotesServiceServer struct { }
UnimplementedNotesServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedNotesServiceServer) AddNote ¶
func (UnimplementedNotesServiceServer) AddNote(context.Context, *AddNoteRequest) (*AddNoteResponse, error)
func (UnimplementedNotesServiceServer) DeleteNote ¶
func (UnimplementedNotesServiceServer) DeleteNote(context.Context, *DeleteNoteRequest) (*DeleteNoteResponse, error)
func (UnimplementedNotesServiceServer) GetNote ¶
func (UnimplementedNotesServiceServer) GetNote(context.Context, *GetNoteRequest) (*GetNoteResponse, error)
func (UnimplementedNotesServiceServer) ListNotes ¶
func (UnimplementedNotesServiceServer) ListNotes(context.Context, *ListNotesRequest) (*ListNotesResponse, error)
func (UnimplementedNotesServiceServer) UpdateNote ¶
func (UnimplementedNotesServiceServer) UpdateNote(context.Context, *UpdateNoteRequest) (*UpdateNoteResponse, error)
type UnimplementedStatusServiceServer ¶
type UnimplementedStatusServiceServer struct { }
UnimplementedStatusServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedStatusServiceServer) AddStatus ¶
func (UnimplementedStatusServiceServer) AddStatus(context.Context, *AddStatusRequest) (*AddStatusResponse, error)
func (UnimplementedStatusServiceServer) DeleteStatus ¶
func (UnimplementedStatusServiceServer) DeleteStatus(context.Context, *DeleteStatusRequest) (*DeleteStatusResponse, error)
func (UnimplementedStatusServiceServer) GetStatus ¶
func (UnimplementedStatusServiceServer) GetStatus(context.Context, *GetStatusRequest) (*GetStatusResponse, error)
func (UnimplementedStatusServiceServer) ListStatus ¶
func (UnimplementedStatusServiceServer) ListStatus(context.Context, *ListStatusRequest) (*ListStatusResponse, error)
func (UnimplementedStatusServiceServer) UpdateStatus ¶
func (UnimplementedStatusServiceServer) UpdateStatus(context.Context, *UpdateStatusRequest) (*UpdateStatusResponse, error)
type UnsafeItemsServiceServer ¶
type UnsafeItemsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeItemsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ItemsServiceServer will result in compilation errors.
type UnsafeNotesServiceServer ¶
type UnsafeNotesServiceServer interface {
// contains filtered or unexported methods
}
UnsafeNotesServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NotesServiceServer will result in compilation errors.
type UnsafeStatusServiceServer ¶
type UnsafeStatusServiceServer interface {
// contains filtered or unexported methods
}
UnsafeStatusServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StatusServiceServer will result in compilation errors.
type UpdateItemRequest ¶
type UpdateItemRequest struct { // the id of the item to update ItemId string `protobuf:"bytes,1,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"` // to change the name Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // to change the description Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // to change the status StatusId string `protobuf:"bytes,4,opt,name=status_id,json=statusId,proto3" json:"status_id,omitempty"` // contains filtered or unexported fields }
func (*UpdateItemRequest) Descriptor
deprecated
func (*UpdateItemRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateItemRequest.ProtoReflect.Descriptor instead.
func (*UpdateItemRequest) GetDescription ¶
func (x *UpdateItemRequest) GetDescription() string
func (*UpdateItemRequest) GetItemId ¶
func (x *UpdateItemRequest) GetItemId() string
func (*UpdateItemRequest) GetName ¶
func (x *UpdateItemRequest) GetName() string
func (*UpdateItemRequest) GetStatusId ¶
func (x *UpdateItemRequest) GetStatusId() string
func (*UpdateItemRequest) ProtoMessage ¶
func (*UpdateItemRequest) ProtoMessage()
func (*UpdateItemRequest) ProtoReflect ¶
func (x *UpdateItemRequest) ProtoReflect() protoreflect.Message
func (*UpdateItemRequest) Reset ¶
func (x *UpdateItemRequest) Reset()
func (*UpdateItemRequest) String ¶
func (x *UpdateItemRequest) String() string
type UpdateItemResponse ¶
type UpdateItemResponse struct {
// contains filtered or unexported fields
}
func (*UpdateItemResponse) Descriptor
deprecated
func (*UpdateItemResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateItemResponse.ProtoReflect.Descriptor instead.
func (*UpdateItemResponse) ProtoMessage ¶
func (*UpdateItemResponse) ProtoMessage()
func (*UpdateItemResponse) ProtoReflect ¶
func (x *UpdateItemResponse) ProtoReflect() protoreflect.Message
func (*UpdateItemResponse) Reset ¶
func (x *UpdateItemResponse) Reset()
func (*UpdateItemResponse) String ¶
func (x *UpdateItemResponse) String() string
type UpdateNoteRequest ¶
type UpdateNoteRequest struct { // the id of the note to update NoteId string `protobuf:"bytes,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"` // the new text for the note NoteText string `protobuf:"bytes,2,opt,name=note_text,json=noteText,proto3" json:"note_text,omitempty"` // contains filtered or unexported fields }
func (*UpdateNoteRequest) Descriptor
deprecated
func (*UpdateNoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNoteRequest.ProtoReflect.Descriptor instead.
func (*UpdateNoteRequest) GetNoteId ¶
func (x *UpdateNoteRequest) GetNoteId() string
func (*UpdateNoteRequest) GetNoteText ¶
func (x *UpdateNoteRequest) GetNoteText() string
func (*UpdateNoteRequest) ProtoMessage ¶
func (*UpdateNoteRequest) ProtoMessage()
func (*UpdateNoteRequest) ProtoReflect ¶
func (x *UpdateNoteRequest) ProtoReflect() protoreflect.Message
func (*UpdateNoteRequest) Reset ¶
func (x *UpdateNoteRequest) Reset()
func (*UpdateNoteRequest) String ¶
func (x *UpdateNoteRequest) String() string
type UpdateNoteResponse ¶
type UpdateNoteResponse struct {
// contains filtered or unexported fields
}
func (*UpdateNoteResponse) Descriptor
deprecated
func (*UpdateNoteResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNoteResponse.ProtoReflect.Descriptor instead.
func (*UpdateNoteResponse) ProtoMessage ¶
func (*UpdateNoteResponse) ProtoMessage()
func (*UpdateNoteResponse) ProtoReflect ¶
func (x *UpdateNoteResponse) ProtoReflect() protoreflect.Message
func (*UpdateNoteResponse) Reset ¶
func (x *UpdateNoteResponse) Reset()
func (*UpdateNoteResponse) String ¶
func (x *UpdateNoteResponse) String() string
type UpdateStatusRequest ¶
type UpdateStatusRequest struct { // id of the status to update StatusId string `protobuf:"bytes,1,opt,name=status_id,json=statusId,proto3" json:"status_id,omitempty"` // new name for the status Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // new description for the status Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // new color for the status Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"` // new kind for the status Kind StatusKind `protobuf:"varint,5,opt,name=kind,proto3,enum=statusthing.v1.StatusKind" json:"kind,omitempty"` // contains filtered or unexported fields }
func (*UpdateStatusRequest) Descriptor
deprecated
func (*UpdateStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateStatusRequest.ProtoReflect.Descriptor instead.
func (*UpdateStatusRequest) GetColor ¶
func (x *UpdateStatusRequest) GetColor() string
func (*UpdateStatusRequest) GetDescription ¶
func (x *UpdateStatusRequest) GetDescription() string
func (*UpdateStatusRequest) GetKind ¶
func (x *UpdateStatusRequest) GetKind() StatusKind
func (*UpdateStatusRequest) GetName ¶
func (x *UpdateStatusRequest) GetName() string
func (*UpdateStatusRequest) GetStatusId ¶
func (x *UpdateStatusRequest) GetStatusId() string
func (*UpdateStatusRequest) ProtoMessage ¶
func (*UpdateStatusRequest) ProtoMessage()
func (*UpdateStatusRequest) ProtoReflect ¶
func (x *UpdateStatusRequest) ProtoReflect() protoreflect.Message
func (*UpdateStatusRequest) Reset ¶
func (x *UpdateStatusRequest) Reset()
func (*UpdateStatusRequest) String ¶
func (x *UpdateStatusRequest) String() string
type UpdateStatusResponse ¶
type UpdateStatusResponse struct {
// contains filtered or unexported fields
}
func (*UpdateStatusResponse) Descriptor
deprecated
func (*UpdateStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateStatusResponse.ProtoReflect.Descriptor instead.
func (*UpdateStatusResponse) ProtoMessage ¶
func (*UpdateStatusResponse) ProtoMessage()
func (*UpdateStatusResponse) ProtoReflect ¶
func (x *UpdateStatusResponse) ProtoReflect() protoreflect.Message
func (*UpdateStatusResponse) Reset ¶
func (x *UpdateStatusResponse) Reset()
func (*UpdateStatusResponse) String ¶
func (x *UpdateStatusResponse) String() string
type User ¶
type User struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` FirstName string `protobuf:"bytes,4,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,5,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` EmailAddress string `protobuf:"bytes,6,opt,name=email_address,json=emailAddress,proto3" json:"email_address,omitempty"` LastLogin *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_login,json=lastLogin,proto3" json:"last_login,omitempty"` AvatarUrl string `protobuf:"bytes,8,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` Timestamps *Timestamps `protobuf:"bytes,15,opt,name=timestamps,proto3" json:"timestamps,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetAvatarUrl ¶
func (*User) GetEmailAddress ¶
func (*User) GetFirstName ¶
func (*User) GetLastLogin ¶
func (x *User) GetLastLogin() *timestamppb.Timestamp
func (*User) GetLastName ¶
func (*User) GetPassword ¶
func (*User) GetTimestamps ¶
func (x *User) GetTimestamps() *Timestamps
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message