v1

package
v0.4.1012 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_metaprov_modelaapi_services_meeting_v1_meeting_proto protoreflect.FileDescriptor
View Source
var MeetingService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "github.com.metaprov.modelaapi.services.meeting.v1.MeetingService",
	HandlerType: (*MeetingServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListMeetings",
			Handler:    _MeetingService_ListMeetings_Handler,
		},
		{
			MethodName: "CreateMeeting",
			Handler:    _MeetingService_CreateMeeting_Handler,
		},
		{
			MethodName: "GetMeeting",
			Handler:    _MeetingService_GetMeeting_Handler,
		},
		{
			MethodName: "UpdateMeeting",
			Handler:    _MeetingService_UpdateMeeting_Handler,
		},
		{
			MethodName: "DeleteMeeting",
			Handler:    _MeetingService_DeleteMeeting_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/metaprov/modelaapi/services/meeting/v1/meeting.proto",
}

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

Functions

func RegisterMeetingServiceHandler added in v0.4.687

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

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

func RegisterMeetingServiceHandlerClient added in v0.4.687

func RegisterMeetingServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MeetingServiceClient) error

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

func RegisterMeetingServiceHandlerFromEndpoint added in v0.4.687

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

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

func RegisterMeetingServiceHandlerServer added in v0.4.687

func RegisterMeetingServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MeetingServiceServer) error

RegisterMeetingServiceHandlerServer registers the http handlers for service MeetingService to "mux". UnaryRPC :call MeetingServiceServer 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 RegisterMeetingServiceHandlerFromEndpoint instead.

func RegisterMeetingServiceServer

func RegisterMeetingServiceServer(s grpc.ServiceRegistrar, srv MeetingServiceServer)

Types

type CreateMeetingRequest

type CreateMeetingRequest struct {
	Meeting  *v1alpha1.Meeting `protobuf:"bytes,1,opt,name=meeting,proto3" json:"meeting,omitempty"`
	Password string            `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateMeetingRequest) Descriptor deprecated

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

Deprecated: Use CreateMeetingRequest.ProtoReflect.Descriptor instead.

func (*CreateMeetingRequest) GetMeeting added in v0.4.475

func (x *CreateMeetingRequest) GetMeeting() *v1alpha1.Meeting

func (*CreateMeetingRequest) GetPassword

func (x *CreateMeetingRequest) GetPassword() string

func (*CreateMeetingRequest) ProtoMessage

func (*CreateMeetingRequest) ProtoMessage()

func (*CreateMeetingRequest) ProtoReflect

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

func (*CreateMeetingRequest) Reset

func (x *CreateMeetingRequest) Reset()

func (*CreateMeetingRequest) String

func (x *CreateMeetingRequest) String() string

type CreateMeetingResponse

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

func (*CreateMeetingResponse) Descriptor deprecated

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

Deprecated: Use CreateMeetingResponse.ProtoReflect.Descriptor instead.

func (*CreateMeetingResponse) ProtoMessage

func (*CreateMeetingResponse) ProtoMessage()

func (*CreateMeetingResponse) ProtoReflect

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

func (*CreateMeetingResponse) Reset

func (x *CreateMeetingResponse) Reset()

func (*CreateMeetingResponse) String

func (x *CreateMeetingResponse) String() string

type DeleteMeetingRequest

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

func (*DeleteMeetingRequest) Descriptor deprecated

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

Deprecated: Use DeleteMeetingRequest.ProtoReflect.Descriptor instead.

func (*DeleteMeetingRequest) GetName

func (x *DeleteMeetingRequest) GetName() string

func (*DeleteMeetingRequest) GetNamespace

func (x *DeleteMeetingRequest) GetNamespace() string

func (*DeleteMeetingRequest) ProtoMessage

func (*DeleteMeetingRequest) ProtoMessage()

func (*DeleteMeetingRequest) ProtoReflect

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

func (*DeleteMeetingRequest) Reset

func (x *DeleteMeetingRequest) Reset()

func (*DeleteMeetingRequest) String

func (x *DeleteMeetingRequest) String() string

type DeleteMeetingResponse

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

func (*DeleteMeetingResponse) Descriptor deprecated

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

Deprecated: Use DeleteMeetingResponse.ProtoReflect.Descriptor instead.

func (*DeleteMeetingResponse) ProtoMessage

func (*DeleteMeetingResponse) ProtoMessage()

func (*DeleteMeetingResponse) ProtoReflect

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

func (*DeleteMeetingResponse) Reset

func (x *DeleteMeetingResponse) Reset()

func (*DeleteMeetingResponse) String

func (x *DeleteMeetingResponse) String() string

type GetMeetingRequest

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

func (*GetMeetingRequest) Descriptor deprecated

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

Deprecated: Use GetMeetingRequest.ProtoReflect.Descriptor instead.

func (*GetMeetingRequest) GetName

func (x *GetMeetingRequest) GetName() string

func (*GetMeetingRequest) GetNamespace

func (x *GetMeetingRequest) GetNamespace() string

func (*GetMeetingRequest) ProtoMessage

func (*GetMeetingRequest) ProtoMessage()

func (*GetMeetingRequest) ProtoReflect

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

func (*GetMeetingRequest) Reset

func (x *GetMeetingRequest) Reset()

func (*GetMeetingRequest) String

func (x *GetMeetingRequest) String() string

type GetMeetingResponse

type GetMeetingResponse struct {
	Meeting *v1alpha1.Meeting `protobuf:"bytes,1,opt,name=meeting,proto3" json:"meeting,omitempty"`
	Yaml    string            `protobuf:"bytes,2,opt,name=yaml,proto3" json:"yaml,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMeetingResponse) Descriptor deprecated

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

Deprecated: Use GetMeetingResponse.ProtoReflect.Descriptor instead.

func (*GetMeetingResponse) GetMeeting added in v0.4.475

func (x *GetMeetingResponse) GetMeeting() *v1alpha1.Meeting

func (*GetMeetingResponse) GetYaml

func (x *GetMeetingResponse) GetYaml() string

func (*GetMeetingResponse) ProtoMessage

func (*GetMeetingResponse) ProtoMessage()

func (*GetMeetingResponse) ProtoReflect

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

func (*GetMeetingResponse) Reset

func (x *GetMeetingResponse) Reset()

func (*GetMeetingResponse) String

func (x *GetMeetingResponse) String() string

type ListMeetingsRequest

type ListMeetingsRequest struct {
	Namespace string            `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Labels    map[string]string `` /* 153-byte string literal not displayed */
	PageSize  int32             `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken string            `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	OrderBy   string            `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMeetingsRequest) Descriptor deprecated

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

Deprecated: Use ListMeetingsRequest.ProtoReflect.Descriptor instead.

func (*ListMeetingsRequest) GetLabels

func (x *ListMeetingsRequest) GetLabels() map[string]string

func (*ListMeetingsRequest) GetNamespace

func (x *ListMeetingsRequest) GetNamespace() string

func (*ListMeetingsRequest) GetOrderBy added in v0.4.414

func (x *ListMeetingsRequest) GetOrderBy() string

func (*ListMeetingsRequest) GetPageSize added in v0.4.414

func (x *ListMeetingsRequest) GetPageSize() int32

func (*ListMeetingsRequest) GetPageToken added in v0.4.414

func (x *ListMeetingsRequest) GetPageToken() string

func (*ListMeetingsRequest) ProtoMessage

func (*ListMeetingsRequest) ProtoMessage()

func (*ListMeetingsRequest) ProtoReflect

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

func (*ListMeetingsRequest) Reset

func (x *ListMeetingsRequest) Reset()

func (*ListMeetingsRequest) String

func (x *ListMeetingsRequest) String() string

type ListMeetingsResponse

type ListMeetingsResponse struct {
	Meetings      *v1alpha1.MeetingList `protobuf:"bytes,1,opt,name=meetings,proto3" json:"meetings,omitempty"`
	NextPageToken string                `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMeetingsResponse) Descriptor deprecated

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

Deprecated: Use ListMeetingsResponse.ProtoReflect.Descriptor instead.

func (*ListMeetingsResponse) GetMeetings added in v0.4.472

func (x *ListMeetingsResponse) GetMeetings() *v1alpha1.MeetingList

func (*ListMeetingsResponse) GetNextPageToken added in v0.4.472

func (x *ListMeetingsResponse) GetNextPageToken() string

func (*ListMeetingsResponse) ProtoMessage

func (*ListMeetingsResponse) ProtoMessage()

func (*ListMeetingsResponse) ProtoReflect

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

func (*ListMeetingsResponse) Reset

func (x *ListMeetingsResponse) Reset()

func (*ListMeetingsResponse) String

func (x *ListMeetingsResponse) String() string

type MeetingResponse

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

func (*MeetingResponse) Descriptor deprecated

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

Deprecated: Use MeetingResponse.ProtoReflect.Descriptor instead.

func (*MeetingResponse) ProtoMessage

func (*MeetingResponse) ProtoMessage()

func (*MeetingResponse) ProtoReflect

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

func (*MeetingResponse) Reset

func (x *MeetingResponse) Reset()

func (*MeetingResponse) String

func (x *MeetingResponse) String() string

type MeetingServiceClient

type MeetingServiceClient interface {
	ListMeetings(ctx context.Context, in *ListMeetingsRequest, opts ...grpc.CallOption) (*ListMeetingsResponse, error)
	CreateMeeting(ctx context.Context, in *CreateMeetingRequest, opts ...grpc.CallOption) (*CreateMeetingResponse, error)
	GetMeeting(ctx context.Context, in *GetMeetingRequest, opts ...grpc.CallOption) (*GetMeetingResponse, error)
	UpdateMeeting(ctx context.Context, in *UpdateMeetingRequest, opts ...grpc.CallOption) (*UpdateMeetingResponse, error)
	DeleteMeeting(ctx context.Context, in *DeleteMeetingRequest, opts ...grpc.CallOption) (*DeleteMeetingResponse, error)
}

MeetingServiceClient is the client API for MeetingService 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 MeetingServiceServer

type MeetingServiceServer interface {
	ListMeetings(context.Context, *ListMeetingsRequest) (*ListMeetingsResponse, error)
	CreateMeeting(context.Context, *CreateMeetingRequest) (*CreateMeetingResponse, error)
	GetMeeting(context.Context, *GetMeetingRequest) (*GetMeetingResponse, error)
	UpdateMeeting(context.Context, *UpdateMeetingRequest) (*UpdateMeetingResponse, error)
	DeleteMeeting(context.Context, *DeleteMeetingRequest) (*DeleteMeetingResponse, error)
	// contains filtered or unexported methods
}

MeetingServiceServer is the server API for MeetingService service. All implementations must embed UnimplementedMeetingServiceServer for forward compatibility

type UnimplementedMeetingServiceServer

type UnimplementedMeetingServiceServer struct {
}

UnimplementedMeetingServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedMeetingServiceServer) CreateMeeting

func (UnimplementedMeetingServiceServer) DeleteMeeting

func (UnimplementedMeetingServiceServer) GetMeeting

func (UnimplementedMeetingServiceServer) ListMeetings

func (UnimplementedMeetingServiceServer) UpdateMeeting

type UnsafeMeetingServiceServer added in v0.4.687

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

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

type UpdateMeetingRequest

type UpdateMeetingRequest struct {
	Meeting   *v1alpha1.Meeting     `protobuf:"bytes,1,opt,name=meeting,proto3" json:"meeting,omitempty"`
	FieldMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateMeetingRequest) Descriptor deprecated

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

Deprecated: Use UpdateMeetingRequest.ProtoReflect.Descriptor instead.

func (*UpdateMeetingRequest) GetFieldMask added in v0.4.422

func (x *UpdateMeetingRequest) GetFieldMask() *field_mask.FieldMask

func (*UpdateMeetingRequest) GetMeeting added in v0.4.475

func (x *UpdateMeetingRequest) GetMeeting() *v1alpha1.Meeting

func (*UpdateMeetingRequest) ProtoMessage

func (*UpdateMeetingRequest) ProtoMessage()

func (*UpdateMeetingRequest) ProtoReflect

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

func (*UpdateMeetingRequest) Reset

func (x *UpdateMeetingRequest) Reset()

func (*UpdateMeetingRequest) String

func (x *UpdateMeetingRequest) String() string

type UpdateMeetingResponse

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

func (*UpdateMeetingResponse) Descriptor deprecated

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

Deprecated: Use UpdateMeetingResponse.ProtoReflect.Descriptor instead.

func (*UpdateMeetingResponse) ProtoMessage

func (*UpdateMeetingResponse) ProtoMessage()

func (*UpdateMeetingResponse) ProtoReflect

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

func (*UpdateMeetingResponse) Reset

func (x *UpdateMeetingResponse) Reset()

func (*UpdateMeetingResponse) String

func (x *UpdateMeetingResponse) String() string

Jump to

Keyboard shortcuts

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