v1

package
v0.0.0-...-a2c21a8 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FileService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "systems.v1.FileService",
	HandlerType: (*FileServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _FileService_List_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _FileService_Get_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _FileService_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _FileService_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _FileService_Delete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/systems/v1/file.proto",
}

FileService_ServiceDesc is the grpc.ServiceDesc for FileService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_api_systems_v1_file_proto protoreflect.FileDescriptor

Functions

func NewFileFormServiceHandler

func NewFileFormServiceHandler(srv FileServiceHandler, opts ...http1.HandleOption) http.Handler

func NewFileServiceHandler

func NewFileServiceHandler(srv FileServiceHandler, opts ...http1.HandleOption) http.Handler

func RegisterFileServiceServer

func RegisterFileServiceServer(s grpc.ServiceRegistrar, srv FileServiceServer)

Types

type File

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

func (*File) Descriptor deprecated

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

Deprecated: Use File.ProtoReflect.Descriptor instead.

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) ProtoReflect

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

func (*File) Reset

func (x *File) Reset()

func (*File) String

func (x *File) String() string

type FileCreateOption

type FileCreateOption struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Size int64  `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*FileCreateOption) Descriptor deprecated

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

Deprecated: Use FileCreateOption.ProtoReflect.Descriptor instead.

func (*FileCreateOption) GetData

func (x *FileCreateOption) GetData() []byte

func (*FileCreateOption) GetName

func (x *FileCreateOption) GetName() string

func (*FileCreateOption) GetSize

func (x *FileCreateOption) GetSize() int64

func (*FileCreateOption) ProtoMessage

func (*FileCreateOption) ProtoMessage()

func (*FileCreateOption) ProtoReflect

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

func (*FileCreateOption) Reset

func (x *FileCreateOption) Reset()

func (*FileCreateOption) String

func (x *FileCreateOption) String() string

type FileDeleteOption

type FileDeleteOption struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*FileDeleteOption) Descriptor deprecated

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

Deprecated: Use FileDeleteOption.ProtoReflect.Descriptor instead.

func (*FileDeleteOption) GetId

func (x *FileDeleteOption) GetId() string

func (*FileDeleteOption) ProtoMessage

func (*FileDeleteOption) ProtoMessage()

func (*FileDeleteOption) ProtoReflect

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

func (*FileDeleteOption) Reset

func (x *FileDeleteOption) Reset()

func (*FileDeleteOption) String

func (x *FileDeleteOption) String() string

type FileGetOption

type FileGetOption struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*FileGetOption) Descriptor deprecated

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

Deprecated: Use FileGetOption.ProtoReflect.Descriptor instead.

func (*FileGetOption) GetId

func (x *FileGetOption) GetId() string

func (*FileGetOption) ProtoMessage

func (*FileGetOption) ProtoMessage()

func (*FileGetOption) ProtoReflect

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

func (*FileGetOption) Reset

func (x *FileGetOption) Reset()

func (*FileGetOption) String

func (x *FileGetOption) String() string

type FileList

type FileList struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*FileList) Descriptor deprecated

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

Deprecated: Use FileList.ProtoReflect.Descriptor instead.

func (*FileList) GetMessage

func (x *FileList) GetMessage() string

func (*FileList) ProtoMessage

func (*FileList) ProtoMessage()

func (*FileList) ProtoReflect

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

func (*FileList) Reset

func (x *FileList) Reset()

func (*FileList) String

func (x *FileList) String() string

type FileListOption

type FileListOption struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*FileListOption) Descriptor deprecated

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

Deprecated: Use FileListOption.ProtoReflect.Descriptor instead.

func (*FileListOption) GetName

func (x *FileListOption) GetName() string

func (*FileListOption) ProtoMessage

func (*FileListOption) ProtoMessage()

func (*FileListOption) ProtoReflect

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

func (*FileListOption) Reset

func (x *FileListOption) Reset()

func (*FileListOption) String

func (x *FileListOption) String() string

type FileServiceClient

type FileServiceClient interface {
	List(ctx context.Context, in *FileListOption, opts ...grpc.CallOption) (*FileList, error)
	Get(ctx context.Context, in *FileGetOption, opts ...grpc.CallOption) (*File, error)
	Create(ctx context.Context, in *FileCreateOption, opts ...grpc.CallOption) (*File, error)
	Update(ctx context.Context, in *FileUpdateOption, opts ...grpc.CallOption) (*File, error)
	Delete(ctx context.Context, in *FileDeleteOption, opts ...grpc.CallOption) (*File, error)
}

FileServiceClient is the client API for FileService 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.

type FileServiceServer

type FileServiceServer interface {
	List(context.Context, *FileListOption) (*FileList, error)
	Get(context.Context, *FileGetOption) (*File, error)
	Create(context.Context, *FileCreateOption) (*File, error)
	Update(context.Context, *FileUpdateOption) (*File, error)
	Delete(context.Context, *FileDeleteOption) (*File, error)
	// contains filtered or unexported methods
}

FileServiceServer is the server API for FileService service. All implementations must embed UnimplementedFileServiceServer for forward compatibility

type FileUpdateOption

type FileUpdateOption struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*FileUpdateOption) Descriptor deprecated

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

Deprecated: Use FileUpdateOption.ProtoReflect.Descriptor instead.

func (*FileUpdateOption) GetName

func (x *FileUpdateOption) GetName() string

func (*FileUpdateOption) ProtoMessage

func (*FileUpdateOption) ProtoMessage()

func (*FileUpdateOption) ProtoReflect

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

func (*FileUpdateOption) Reset

func (x *FileUpdateOption) Reset()

func (*FileUpdateOption) String

func (x *FileUpdateOption) String() string

type UnimplementedFileServiceServer

type UnimplementedFileServiceServer struct {
}

UnimplementedFileServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedFileServiceServer) Create

func (UnimplementedFileServiceServer) Delete

func (UnimplementedFileServiceServer) Get

func (UnimplementedFileServiceServer) List

func (UnimplementedFileServiceServer) Update

type UnsafeFileServiceServer

type UnsafeFileServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeFileServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FileServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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