Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterDBControllerServer(s grpc.ServiceRegistrar, srv DBControllerServer)
- type DBControllerClient
- type DBControllerServer
- type DefaultResponse
- func (*DefaultResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DefaultResponse) GetData() *anypb.Any
- func (x *DefaultResponse) GetMessage() string
- func (x *DefaultResponse) GetStatus() ResultStatus
- func (*DefaultResponse) ProtoMessage()
- func (x *DefaultResponse) ProtoReflect() protoreflect.Message
- func (x *DefaultResponse) Reset()
- func (x *DefaultResponse) String() string
- type ItemIdentifier
- func (*ItemIdentifier) Descriptor() ([]byte, []int)deprecated
- func (x *ItemIdentifier) GetCollection() string
- func (x *ItemIdentifier) GetSignature() string
- func (*ItemIdentifier) ProtoMessage()
- func (x *ItemIdentifier) ProtoReflect() protoreflect.Message
- func (x *ItemIdentifier) Reset()
- func (x *ItemIdentifier) String() string
- type NewItem
- func (*NewItem) Descriptor() ([]byte, []int)deprecated
- func (x *NewItem) GetIdentifier() *ItemIdentifier
- func (x *NewItem) GetParent() *ItemIdentifier
- func (x *NewItem) GetPublic() bool
- func (x *NewItem) GetPublicActions() []byte
- func (x *NewItem) GetUrn() string
- func (*NewItem) ProtoMessage()
- func (x *NewItem) ProtoReflect() protoreflect.Message
- func (x *NewItem) Reset()
- func (x *NewItem) String() string
- type ResultStatus
- func (ResultStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ResultStatus) Enum() *ResultStatus
- func (ResultStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ResultStatus) Number() protoreflect.EnumNumber
- func (x ResultStatus) String() string
- func (ResultStatus) Type() protoreflect.EnumType
- type UnimplementedDBControllerServer
- type UnsafeDBControllerServer
Constants ¶
const (
DBController_CreateItem_FullMethodName = "/mediaserverdbproto.DBController/CreateItem"
)
Variables ¶
var ( ResultStatus_name = map[int32]string{ 0: "Error", 1: "OK", 2: "Waruning", } ResultStatus_value = map[string]int32{ "Error": 0, "OK": 1, "Waruning": 2, } )
Enum value maps for ResultStatus.
var DBController_ServiceDesc = grpc.ServiceDesc{ ServiceName: "mediaserverdbproto.DBController", HandlerType: (*DBControllerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateItem", Handler: _DBController_CreateItem_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "dbcontroller.proto", }
DBController_ServiceDesc is the grpc.ServiceDesc for DBController service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_dbcontroller_proto protoreflect.FileDescriptor
var File_defaultResponse_proto protoreflect.FileDescriptor
var File_item_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDBControllerServer ¶
func RegisterDBControllerServer(s grpc.ServiceRegistrar, srv DBControllerServer)
Types ¶
type DBControllerClient ¶
type DBControllerClient interface {
CreateItem(ctx context.Context, in *NewItem, opts ...grpc.CallOption) (*DefaultResponse, error)
}
DBControllerClient is the client API for DBController 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 NewDBControllerClient ¶
func NewDBControllerClient(cc grpc.ClientConnInterface) DBControllerClient
type DBControllerServer ¶
type DBControllerServer interface { CreateItem(context.Context, *NewItem) (*DefaultResponse, error) // contains filtered or unexported methods }
DBControllerServer is the server API for DBController service. All implementations must embed UnimplementedDBControllerServer for forward compatibility
type DefaultResponse ¶
type DefaultResponse struct { Status ResultStatus `protobuf:"varint,1,opt,name=status,proto3,enum=mediaserverdbproto.ResultStatus" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Data *anypb.Any `protobuf:"bytes,3,opt,name=data,proto3,oneof" json:"data,omitempty"` // contains filtered or unexported fields }
func (*DefaultResponse) Descriptor
deprecated
func (*DefaultResponse) Descriptor() ([]byte, []int)
Deprecated: Use DefaultResponse.ProtoReflect.Descriptor instead.
func (*DefaultResponse) GetData ¶
func (x *DefaultResponse) GetData() *anypb.Any
func (*DefaultResponse) GetMessage ¶
func (x *DefaultResponse) GetMessage() string
func (*DefaultResponse) GetStatus ¶
func (x *DefaultResponse) GetStatus() ResultStatus
func (*DefaultResponse) ProtoMessage ¶
func (*DefaultResponse) ProtoMessage()
func (*DefaultResponse) ProtoReflect ¶
func (x *DefaultResponse) ProtoReflect() protoreflect.Message
func (*DefaultResponse) Reset ¶
func (x *DefaultResponse) Reset()
func (*DefaultResponse) String ¶
func (x *DefaultResponse) String() string
type ItemIdentifier ¶
type ItemIdentifier struct { Collection string `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"` Signature string `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*ItemIdentifier) Descriptor
deprecated
func (*ItemIdentifier) Descriptor() ([]byte, []int)
Deprecated: Use ItemIdentifier.ProtoReflect.Descriptor instead.
func (*ItemIdentifier) GetCollection ¶
func (x *ItemIdentifier) GetCollection() string
func (*ItemIdentifier) GetSignature ¶
func (x *ItemIdentifier) GetSignature() string
func (*ItemIdentifier) ProtoMessage ¶
func (*ItemIdentifier) ProtoMessage()
func (*ItemIdentifier) ProtoReflect ¶
func (x *ItemIdentifier) ProtoReflect() protoreflect.Message
func (*ItemIdentifier) Reset ¶
func (x *ItemIdentifier) Reset()
func (*ItemIdentifier) String ¶
func (x *ItemIdentifier) String() string
type NewItem ¶
type NewItem struct { Identifier *ItemIdentifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` Urn string `protobuf:"bytes,2,opt,name=urn,proto3" json:"urn,omitempty"` Public bool `protobuf:"varint,3,opt,name=public,proto3" json:"public,omitempty"` Parent *ItemIdentifier `protobuf:"bytes,4,opt,name=parent,proto3,oneof" json:"parent,omitempty"` PublicActions []byte `protobuf:"bytes,5,opt,name=publicActions,proto3,oneof" json:"publicActions,omitempty"` // contains filtered or unexported fields }
func (*NewItem) Descriptor
deprecated
func (*NewItem) GetIdentifier ¶
func (x *NewItem) GetIdentifier() *ItemIdentifier
func (*NewItem) GetParent ¶
func (x *NewItem) GetParent() *ItemIdentifier
func (*NewItem) GetPublicActions ¶
func (*NewItem) ProtoMessage ¶
func (*NewItem) ProtoMessage()
func (*NewItem) ProtoReflect ¶
func (x *NewItem) ProtoReflect() protoreflect.Message
type ResultStatus ¶
type ResultStatus int32
const ( ResultStatus_Error ResultStatus = 0 ResultStatus_OK ResultStatus = 1 ResultStatus_Waruning ResultStatus = 2 )
func (ResultStatus) Descriptor ¶
func (ResultStatus) Descriptor() protoreflect.EnumDescriptor
func (ResultStatus) Enum ¶
func (x ResultStatus) Enum() *ResultStatus
func (ResultStatus) EnumDescriptor
deprecated
func (ResultStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ResultStatus.Descriptor instead.
func (ResultStatus) Number ¶
func (x ResultStatus) Number() protoreflect.EnumNumber
func (ResultStatus) String ¶
func (x ResultStatus) String() string
func (ResultStatus) Type ¶
func (ResultStatus) Type() protoreflect.EnumType
type UnimplementedDBControllerServer ¶
type UnimplementedDBControllerServer struct { }
UnimplementedDBControllerServer must be embedded to have forward compatible implementations.
func (UnimplementedDBControllerServer) CreateItem ¶
func (UnimplementedDBControllerServer) CreateItem(context.Context, *NewItem) (*DefaultResponse, error)
type UnsafeDBControllerServer ¶
type UnsafeDBControllerServer interface {
// contains filtered or unexported methods
}
UnsafeDBControllerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DBControllerServer will result in compilation errors.