workspaces

package
v0.0.0-...-1d8daf6 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package workspaces is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_protobuf_workspaces_model_proto protoreflect.FileDescriptor
View Source
var File_protobuf_workspaces_workspaces_proto protoreflect.FileDescriptor

Functions

func RegisterWorkspaceServiceHandler

func RegisterWorkspaceServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterWorkspaceServiceHandler registers the http handlers for service WorkspaceService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterWorkspaceServiceHandlerClient

func RegisterWorkspaceServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WorkspaceServiceClient) error

RegisterWorkspaceServiceHandlerClient registers the http handlers for service WorkspaceService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "WorkspaceServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "WorkspaceServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "WorkspaceServiceClient" to call the correct interceptors.

func RegisterWorkspaceServiceHandlerFromEndpoint

func RegisterWorkspaceServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterWorkspaceServiceHandlerFromEndpoint is same as RegisterWorkspaceServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterWorkspaceServiceHandlerServer

func RegisterWorkspaceServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WorkspaceServiceServer) error

RegisterWorkspaceServiceHandlerServer registers the http handlers for service WorkspaceService to "mux". UnaryRPC :call WorkspaceServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterWorkspaceServiceHandlerFromEndpoint instead.

func RegisterWorkspaceServiceServer

func RegisterWorkspaceServiceServer(s *grpc.Server, srv WorkspaceServiceServer)

Types

type CreateWorkspaceRequest

type CreateWorkspaceRequest struct {
	Title  string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateWorkspaceRequest) Descriptor deprecated

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

Deprecated: Use CreateWorkspaceRequest.ProtoReflect.Descriptor instead.

func (*CreateWorkspaceRequest) GetDomain

func (x *CreateWorkspaceRequest) GetDomain() string

func (*CreateWorkspaceRequest) GetTitle

func (x *CreateWorkspaceRequest) GetTitle() string

func (*CreateWorkspaceRequest) ProtoMessage

func (*CreateWorkspaceRequest) ProtoMessage()

func (*CreateWorkspaceRequest) ProtoReflect

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

func (*CreateWorkspaceRequest) Reset

func (x *CreateWorkspaceRequest) Reset()

func (*CreateWorkspaceRequest) String

func (x *CreateWorkspaceRequest) String() string

type DeleteWorkspaceRequest

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

func (*DeleteWorkspaceRequest) Descriptor deprecated

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

Deprecated: Use DeleteWorkspaceRequest.ProtoReflect.Descriptor instead.

func (*DeleteWorkspaceRequest) GetUuid

func (x *DeleteWorkspaceRequest) GetUuid() string

func (*DeleteWorkspaceRequest) ProtoMessage

func (*DeleteWorkspaceRequest) ProtoMessage()

func (*DeleteWorkspaceRequest) ProtoReflect

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

func (*DeleteWorkspaceRequest) Reset

func (x *DeleteWorkspaceRequest) Reset()

func (*DeleteWorkspaceRequest) String

func (x *DeleteWorkspaceRequest) String() string

type GetWorkspaceRequest

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

func (*GetWorkspaceRequest) Descriptor deprecated

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

Deprecated: Use GetWorkspaceRequest.ProtoReflect.Descriptor instead.

func (*GetWorkspaceRequest) GetUuid

func (x *GetWorkspaceRequest) GetUuid() string

func (*GetWorkspaceRequest) ProtoMessage

func (*GetWorkspaceRequest) ProtoMessage()

func (*GetWorkspaceRequest) ProtoReflect

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

func (*GetWorkspaceRequest) Reset

func (x *GetWorkspaceRequest) Reset()

func (*GetWorkspaceRequest) String

func (x *GetWorkspaceRequest) String() string

type ListWorkspacesRequest

type ListWorkspacesRequest struct {
	Limit  int64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*ListWorkspacesRequest) Descriptor deprecated

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

Deprecated: Use ListWorkspacesRequest.ProtoReflect.Descriptor instead.

func (*ListWorkspacesRequest) GetLimit

func (x *ListWorkspacesRequest) GetLimit() int64

func (*ListWorkspacesRequest) GetOffset

func (x *ListWorkspacesRequest) GetOffset() int64

func (*ListWorkspacesRequest) ProtoMessage

func (*ListWorkspacesRequest) ProtoMessage()

func (*ListWorkspacesRequest) ProtoReflect

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

func (*ListWorkspacesRequest) Reset

func (x *ListWorkspacesRequest) Reset()

func (*ListWorkspacesRequest) String

func (x *ListWorkspacesRequest) String() string

type ListWorkspacesResponse

type ListWorkspacesResponse struct {
	Workspaces []*Workspace `protobuf:"bytes,1,rep,name=workspaces,proto3" json:"workspaces,omitempty"`
	TotalCount int64        `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	Limit      int64        `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset     int64        `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*ListWorkspacesResponse) Descriptor deprecated

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

Deprecated: Use ListWorkspacesResponse.ProtoReflect.Descriptor instead.

func (*ListWorkspacesResponse) GetLimit

func (x *ListWorkspacesResponse) GetLimit() int64

func (*ListWorkspacesResponse) GetOffset

func (x *ListWorkspacesResponse) GetOffset() int64

func (*ListWorkspacesResponse) GetTotalCount

func (x *ListWorkspacesResponse) GetTotalCount() int64

func (*ListWorkspacesResponse) GetWorkspaces

func (x *ListWorkspacesResponse) GetWorkspaces() []*Workspace

func (*ListWorkspacesResponse) ProtoMessage

func (*ListWorkspacesResponse) ProtoMessage()

func (*ListWorkspacesResponse) ProtoReflect

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

func (*ListWorkspacesResponse) Reset

func (x *ListWorkspacesResponse) Reset()

func (*ListWorkspacesResponse) String

func (x *ListWorkspacesResponse) String() string

type UnimplementedWorkspaceServiceServer

type UnimplementedWorkspaceServiceServer struct {
}

UnimplementedWorkspaceServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedWorkspaceServiceServer) CreateWorkspace

func (*UnimplementedWorkspaceServiceServer) DeleteWorkspace

func (*UnimplementedWorkspaceServiceServer) GetWorkspace

func (*UnimplementedWorkspaceServiceServer) ListWorkspaces

func (*UnimplementedWorkspaceServiceServer) UpdateWorkspace

type UpdateWorkspaceRequest

type UpdateWorkspaceRequest struct {
	Uuid   string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Title  string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateWorkspaceRequest) Descriptor deprecated

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

Deprecated: Use UpdateWorkspaceRequest.ProtoReflect.Descriptor instead.

func (*UpdateWorkspaceRequest) GetDomain

func (x *UpdateWorkspaceRequest) GetDomain() string

func (*UpdateWorkspaceRequest) GetTitle

func (x *UpdateWorkspaceRequest) GetTitle() string

func (*UpdateWorkspaceRequest) GetUuid

func (x *UpdateWorkspaceRequest) GetUuid() string

func (*UpdateWorkspaceRequest) ProtoMessage

func (*UpdateWorkspaceRequest) ProtoMessage()

func (*UpdateWorkspaceRequest) ProtoReflect

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

func (*UpdateWorkspaceRequest) Reset

func (x *UpdateWorkspaceRequest) Reset()

func (*UpdateWorkspaceRequest) String

func (x *UpdateWorkspaceRequest) String() string

type Workspace

type Workspace struct {
	Id        uint64               `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Uuid      string               `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Title     string               `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	Domain    string               `protobuf:"bytes,4,opt,name=domain,proto3" json:"domain,omitempty"`
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Workspace) Descriptor deprecated

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

Deprecated: Use Workspace.ProtoReflect.Descriptor instead.

func (*Workspace) GetCreatedAt

func (x *Workspace) GetCreatedAt() *timestamp.Timestamp

func (*Workspace) GetDomain

func (x *Workspace) GetDomain() string

func (*Workspace) GetId

func (x *Workspace) GetId() uint64

func (*Workspace) GetTitle

func (x *Workspace) GetTitle() string

func (*Workspace) GetUpdatedAt

func (x *Workspace) GetUpdatedAt() *timestamp.Timestamp

func (*Workspace) GetUuid

func (x *Workspace) GetUuid() string

func (*Workspace) ProtoMessage

func (*Workspace) ProtoMessage()

func (*Workspace) ProtoReflect

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

func (*Workspace) Reset

func (x *Workspace) Reset()

func (*Workspace) String

func (x *Workspace) String() string

type WorkspaceServiceClient

type WorkspaceServiceClient interface {
	// List Workspaces
	ListWorkspaces(ctx context.Context, in *ListWorkspacesRequest, opts ...grpc.CallOption) (*ListWorkspacesResponse, error)
	// Get Workspace
	GetWorkspace(ctx context.Context, in *GetWorkspaceRequest, opts ...grpc.CallOption) (*Workspace, error)
	// Create Workspace object request
	CreateWorkspace(ctx context.Context, in *CreateWorkspaceRequest, opts ...grpc.CallOption) (*Workspace, error)
	// Update Workspace object request
	UpdateWorkspace(ctx context.Context, in *UpdateWorkspaceRequest, opts ...grpc.CallOption) (*Workspace, error)
	// Delete Workspace object request
	DeleteWorkspace(ctx context.Context, in *DeleteWorkspaceRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}

WorkspaceServiceClient is the client API for WorkspaceService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type WorkspaceServiceServer

type WorkspaceServiceServer interface {
	// List Workspaces
	ListWorkspaces(context.Context, *ListWorkspacesRequest) (*ListWorkspacesResponse, error)
	// Get Workspace
	GetWorkspace(context.Context, *GetWorkspaceRequest) (*Workspace, error)
	// Create Workspace object request
	CreateWorkspace(context.Context, *CreateWorkspaceRequest) (*Workspace, error)
	// Update Workspace object request
	UpdateWorkspace(context.Context, *UpdateWorkspaceRequest) (*Workspace, error)
	// Delete Workspace object request
	DeleteWorkspace(context.Context, *DeleteWorkspaceRequest) (*empty.Empty, error)
}

WorkspaceServiceServer is the server API for WorkspaceService service.

Jump to

Keyboard shortcuts

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