ocp_slide_api

package
v0.0.0-...-23b1354 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: MIT Imports: 29 Imported by: 0

Documentation

Overview

Package ocp_slide_api is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ContentType_name = map[int32]string{
		0: "Question",
		1: "Video",
		2: "Document",
		3: "Task",
	}
	ContentType_value = map[string]int32{
		"Question": 0,
		"Video":    1,
		"Document": 2,
		"Task":     3,
	}
)

Enum value maps for ContentType.

View Source
var File_api_ocp_slide_api_ocp_slide_api_proto protoreflect.FileDescriptor
View Source
var SlideAPI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ocp.slide.api.SlideAPI",
	HandlerType: (*SlideAPIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateSlideV1",
			Handler:    _SlideAPI_CreateSlideV1_Handler,
		},
		{
			MethodName: "MultiCreateSlidesV1",
			Handler:    _SlideAPI_MultiCreateSlidesV1_Handler,
		},
		{
			MethodName: "UpdateSlideV1",
			Handler:    _SlideAPI_UpdateSlideV1_Handler,
		},
		{
			MethodName: "DescribeSlideV1",
			Handler:    _SlideAPI_DescribeSlideV1_Handler,
		},
		{
			MethodName: "ListSlidesV1",
			Handler:    _SlideAPI_ListSlidesV1_Handler,
		},
		{
			MethodName: "RemoveSlideV1",
			Handler:    _SlideAPI_RemoveSlideV1_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/ocp-slide-api/ocp-slide-api.proto",
}

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

Functions

func RegisterSlideAPIHandler

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

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

func RegisterSlideAPIHandlerClient

func RegisterSlideAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SlideAPIClient) error

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

func RegisterSlideAPIHandlerFromEndpoint

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

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

func RegisterSlideAPIHandlerServer

func RegisterSlideAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SlideAPIServer) error

RegisterSlideAPIHandlerServer registers the http handlers for service SlideAPI to "mux". UnaryRPC :call SlideAPIServer 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 RegisterSlideAPIHandlerFromEndpoint instead.

func RegisterSlideAPIServer

func RegisterSlideAPIServer(s grpc.ServiceRegistrar, srv SlideAPIServer)

Types

type ContentType

type ContentType int32
const (
	ContentType_Question ContentType = 0
	ContentType_Video    ContentType = 1
	ContentType_Document ContentType = 2
	ContentType_Task     ContentType = 3
)

func (ContentType) Descriptor

func (ContentType) Enum

func (x ContentType) Enum() *ContentType

func (ContentType) EnumDescriptor deprecated

func (ContentType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ContentType.Descriptor instead.

func (ContentType) Number

func (x ContentType) Number() protoreflect.EnumNumber

func (ContentType) String

func (x ContentType) String() string

func (ContentType) Type

type CreateSlideV1Request

type CreateSlideV1Request struct {
	Slide *NewSlide `protobuf:"bytes,1,opt,name=slide,proto3" json:"slide,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSlideV1Request) Descriptor deprecated

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

Deprecated: Use CreateSlideV1Request.ProtoReflect.Descriptor instead.

func (*CreateSlideV1Request) GetSlide

func (x *CreateSlideV1Request) GetSlide() *NewSlide

func (*CreateSlideV1Request) ProtoMessage

func (*CreateSlideV1Request) ProtoMessage()

func (*CreateSlideV1Request) ProtoReflect

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

func (*CreateSlideV1Request) Reset

func (x *CreateSlideV1Request) Reset()

func (*CreateSlideV1Request) String

func (x *CreateSlideV1Request) String() string

func (*CreateSlideV1Request) Validate

func (m *CreateSlideV1Request) Validate() error

Validate checks the field values on CreateSlideV1Request with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CreateSlideV1RequestValidationError

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

CreateSlideV1RequestValidationError is the validation error returned by CreateSlideV1Request.Validate if the designated constraints aren't met.

func (CreateSlideV1RequestValidationError) Cause

Cause function returns cause value.

func (CreateSlideV1RequestValidationError) Error

Error satisfies the builtin error interface

func (CreateSlideV1RequestValidationError) ErrorName

ErrorName returns error name.

func (CreateSlideV1RequestValidationError) Field

Field function returns field value.

func (CreateSlideV1RequestValidationError) Key

Key function returns key value.

func (CreateSlideV1RequestValidationError) Reason

Reason function returns reason value.

type CreateSlideV1Response

type CreateSlideV1Response struct {
	SlideId uint64 `protobuf:"varint,1,opt,name=slide_id,json=slideId,proto3" json:"slide_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSlideV1Response) Descriptor deprecated

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

Deprecated: Use CreateSlideV1Response.ProtoReflect.Descriptor instead.

func (*CreateSlideV1Response) GetSlideId

func (x *CreateSlideV1Response) GetSlideId() uint64

func (*CreateSlideV1Response) ProtoMessage

func (*CreateSlideV1Response) ProtoMessage()

func (*CreateSlideV1Response) ProtoReflect

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

func (*CreateSlideV1Response) Reset

func (x *CreateSlideV1Response) Reset()

func (*CreateSlideV1Response) String

func (x *CreateSlideV1Response) String() string

func (*CreateSlideV1Response) Validate

func (m *CreateSlideV1Response) Validate() error

Validate checks the field values on CreateSlideV1Response with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CreateSlideV1ResponseValidationError

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

CreateSlideV1ResponseValidationError is the validation error returned by CreateSlideV1Response.Validate if the designated constraints aren't met.

func (CreateSlideV1ResponseValidationError) Cause

Cause function returns cause value.

func (CreateSlideV1ResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateSlideV1ResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateSlideV1ResponseValidationError) Field

Field function returns field value.

func (CreateSlideV1ResponseValidationError) Key

Key function returns key value.

func (CreateSlideV1ResponseValidationError) Reason

Reason function returns reason value.

type DescribeSlideV1Request

type DescribeSlideV1Request struct {
	SlideId uint64 `protobuf:"varint,1,opt,name=slide_id,json=slideId,proto3" json:"slide_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DescribeSlideV1Request) Descriptor deprecated

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

Deprecated: Use DescribeSlideV1Request.ProtoReflect.Descriptor instead.

func (*DescribeSlideV1Request) GetSlideId

func (x *DescribeSlideV1Request) GetSlideId() uint64

func (*DescribeSlideV1Request) ProtoMessage

func (*DescribeSlideV1Request) ProtoMessage()

func (*DescribeSlideV1Request) ProtoReflect

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

func (*DescribeSlideV1Request) Reset

func (x *DescribeSlideV1Request) Reset()

func (*DescribeSlideV1Request) String

func (x *DescribeSlideV1Request) String() string

func (*DescribeSlideV1Request) Validate

func (m *DescribeSlideV1Request) Validate() error

Validate checks the field values on DescribeSlideV1Request with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type DescribeSlideV1RequestValidationError

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

DescribeSlideV1RequestValidationError is the validation error returned by DescribeSlideV1Request.Validate if the designated constraints aren't met.

func (DescribeSlideV1RequestValidationError) Cause

Cause function returns cause value.

func (DescribeSlideV1RequestValidationError) Error

Error satisfies the builtin error interface

func (DescribeSlideV1RequestValidationError) ErrorName

ErrorName returns error name.

func (DescribeSlideV1RequestValidationError) Field

Field function returns field value.

func (DescribeSlideV1RequestValidationError) Key

Key function returns key value.

func (DescribeSlideV1RequestValidationError) Reason

Reason function returns reason value.

type DescribeSlideV1Response

type DescribeSlideV1Response struct {
	Slide *Slide `protobuf:"bytes,1,opt,name=slide,proto3" json:"slide,omitempty"`
	// contains filtered or unexported fields
}

func (*DescribeSlideV1Response) Descriptor deprecated

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

Deprecated: Use DescribeSlideV1Response.ProtoReflect.Descriptor instead.

func (*DescribeSlideV1Response) GetSlide

func (x *DescribeSlideV1Response) GetSlide() *Slide

func (*DescribeSlideV1Response) ProtoMessage

func (*DescribeSlideV1Response) ProtoMessage()

func (*DescribeSlideV1Response) ProtoReflect

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

func (*DescribeSlideV1Response) Reset

func (x *DescribeSlideV1Response) Reset()

func (*DescribeSlideV1Response) String

func (x *DescribeSlideV1Response) String() string

func (*DescribeSlideV1Response) Validate

func (m *DescribeSlideV1Response) Validate() error

Validate checks the field values on DescribeSlideV1Response with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type DescribeSlideV1ResponseValidationError

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

DescribeSlideV1ResponseValidationError is the validation error returned by DescribeSlideV1Response.Validate if the designated constraints aren't met.

func (DescribeSlideV1ResponseValidationError) Cause

Cause function returns cause value.

func (DescribeSlideV1ResponseValidationError) Error

Error satisfies the builtin error interface

func (DescribeSlideV1ResponseValidationError) ErrorName

ErrorName returns error name.

func (DescribeSlideV1ResponseValidationError) Field

Field function returns field value.

func (DescribeSlideV1ResponseValidationError) Key

Key function returns key value.

func (DescribeSlideV1ResponseValidationError) Reason

Reason function returns reason value.

type ListSlidesV1Request

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

func (*ListSlidesV1Request) Descriptor deprecated

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

Deprecated: Use ListSlidesV1Request.ProtoReflect.Descriptor instead.

func (*ListSlidesV1Request) GetLimit

func (x *ListSlidesV1Request) GetLimit() uint64

func (*ListSlidesV1Request) GetOffset

func (x *ListSlidesV1Request) GetOffset() uint64

func (*ListSlidesV1Request) ProtoMessage

func (*ListSlidesV1Request) ProtoMessage()

func (*ListSlidesV1Request) ProtoReflect

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

func (*ListSlidesV1Request) Reset

func (x *ListSlidesV1Request) Reset()

func (*ListSlidesV1Request) String

func (x *ListSlidesV1Request) String() string

func (*ListSlidesV1Request) Validate

func (m *ListSlidesV1Request) Validate() error

Validate checks the field values on ListSlidesV1Request with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ListSlidesV1RequestValidationError

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

ListSlidesV1RequestValidationError is the validation error returned by ListSlidesV1Request.Validate if the designated constraints aren't met.

func (ListSlidesV1RequestValidationError) Cause

Cause function returns cause value.

func (ListSlidesV1RequestValidationError) Error

Error satisfies the builtin error interface

func (ListSlidesV1RequestValidationError) ErrorName

ErrorName returns error name.

func (ListSlidesV1RequestValidationError) Field

Field function returns field value.

func (ListSlidesV1RequestValidationError) Key

Key function returns key value.

func (ListSlidesV1RequestValidationError) Reason

Reason function returns reason value.

type ListSlidesV1Response

type ListSlidesV1Response struct {
	Slides []*Slide `protobuf:"bytes,1,rep,name=slides,proto3" json:"slides,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSlidesV1Response) Descriptor deprecated

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

Deprecated: Use ListSlidesV1Response.ProtoReflect.Descriptor instead.

func (*ListSlidesV1Response) GetSlides

func (x *ListSlidesV1Response) GetSlides() []*Slide

func (*ListSlidesV1Response) ProtoMessage

func (*ListSlidesV1Response) ProtoMessage()

func (*ListSlidesV1Response) ProtoReflect

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

func (*ListSlidesV1Response) Reset

func (x *ListSlidesV1Response) Reset()

func (*ListSlidesV1Response) String

func (x *ListSlidesV1Response) String() string

func (*ListSlidesV1Response) Validate

func (m *ListSlidesV1Response) Validate() error

Validate checks the field values on ListSlidesV1Response with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ListSlidesV1ResponseValidationError

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

ListSlidesV1ResponseValidationError is the validation error returned by ListSlidesV1Response.Validate if the designated constraints aren't met.

func (ListSlidesV1ResponseValidationError) Cause

Cause function returns cause value.

func (ListSlidesV1ResponseValidationError) Error

Error satisfies the builtin error interface

func (ListSlidesV1ResponseValidationError) ErrorName

ErrorName returns error name.

func (ListSlidesV1ResponseValidationError) Field

Field function returns field value.

func (ListSlidesV1ResponseValidationError) Key

Key function returns key value.

func (ListSlidesV1ResponseValidationError) Reason

Reason function returns reason value.

type MultiCreateSlidesV1Request

type MultiCreateSlidesV1Request struct {
	Slides []*NewSlide `protobuf:"bytes,1,rep,name=slides,proto3" json:"slides,omitempty"`
	// contains filtered or unexported fields
}

func (*MultiCreateSlidesV1Request) Descriptor deprecated

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

Deprecated: Use MultiCreateSlidesV1Request.ProtoReflect.Descriptor instead.

func (*MultiCreateSlidesV1Request) GetSlides

func (x *MultiCreateSlidesV1Request) GetSlides() []*NewSlide

func (*MultiCreateSlidesV1Request) ProtoMessage

func (*MultiCreateSlidesV1Request) ProtoMessage()

func (*MultiCreateSlidesV1Request) ProtoReflect

func (*MultiCreateSlidesV1Request) Reset

func (x *MultiCreateSlidesV1Request) Reset()

func (*MultiCreateSlidesV1Request) String

func (x *MultiCreateSlidesV1Request) String() string

func (*MultiCreateSlidesV1Request) Validate

func (m *MultiCreateSlidesV1Request) Validate() error

Validate checks the field values on MultiCreateSlidesV1Request with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type MultiCreateSlidesV1RequestValidationError

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

MultiCreateSlidesV1RequestValidationError is the validation error returned by MultiCreateSlidesV1Request.Validate if the designated constraints aren't met.

func (MultiCreateSlidesV1RequestValidationError) Cause

Cause function returns cause value.

func (MultiCreateSlidesV1RequestValidationError) Error

Error satisfies the builtin error interface

func (MultiCreateSlidesV1RequestValidationError) ErrorName

ErrorName returns error name.

func (MultiCreateSlidesV1RequestValidationError) Field

Field function returns field value.

func (MultiCreateSlidesV1RequestValidationError) Key

Key function returns key value.

func (MultiCreateSlidesV1RequestValidationError) Reason

Reason function returns reason value.

type MultiCreateSlidesV1Response

type MultiCreateSlidesV1Response struct {
	NumberOfCreatedSlides int64 `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*MultiCreateSlidesV1Response) Descriptor deprecated

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

Deprecated: Use MultiCreateSlidesV1Response.ProtoReflect.Descriptor instead.

func (*MultiCreateSlidesV1Response) GetNumberOfCreatedSlides

func (x *MultiCreateSlidesV1Response) GetNumberOfCreatedSlides() int64

func (*MultiCreateSlidesV1Response) ProtoMessage

func (*MultiCreateSlidesV1Response) ProtoMessage()

func (*MultiCreateSlidesV1Response) ProtoReflect

func (*MultiCreateSlidesV1Response) Reset

func (x *MultiCreateSlidesV1Response) Reset()

func (*MultiCreateSlidesV1Response) String

func (x *MultiCreateSlidesV1Response) String() string

func (*MultiCreateSlidesV1Response) Validate

func (m *MultiCreateSlidesV1Response) Validate() error

Validate checks the field values on MultiCreateSlidesV1Response with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type MultiCreateSlidesV1ResponseValidationError

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

MultiCreateSlidesV1ResponseValidationError is the validation error returned by MultiCreateSlidesV1Response.Validate if the designated constraints aren't met.

func (MultiCreateSlidesV1ResponseValidationError) Cause

Cause function returns cause value.

func (MultiCreateSlidesV1ResponseValidationError) Error

Error satisfies the builtin error interface

func (MultiCreateSlidesV1ResponseValidationError) ErrorName

ErrorName returns error name.

func (MultiCreateSlidesV1ResponseValidationError) Field

Field function returns field value.

func (MultiCreateSlidesV1ResponseValidationError) Key

Key function returns key value.

func (MultiCreateSlidesV1ResponseValidationError) Reason

Reason function returns reason value.

type NewSlide

type NewSlide struct {
	PresentationId uint64      `protobuf:"varint,1,opt,name=presentation_id,json=presentationId,proto3" json:"presentation_id,omitempty"`
	Number         uint64      `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`
	Type           ContentType `protobuf:"varint,3,opt,name=type,proto3,enum=ocp.slide.api.ContentType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*NewSlide) Descriptor deprecated

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

Deprecated: Use NewSlide.ProtoReflect.Descriptor instead.

func (*NewSlide) GetNumber

func (x *NewSlide) GetNumber() uint64

func (*NewSlide) GetPresentationId

func (x *NewSlide) GetPresentationId() uint64

func (*NewSlide) GetType

func (x *NewSlide) GetType() ContentType

func (*NewSlide) ProtoMessage

func (*NewSlide) ProtoMessage()

func (*NewSlide) ProtoReflect

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

func (*NewSlide) Reset

func (x *NewSlide) Reset()

func (*NewSlide) String

func (x *NewSlide) String() string

func (*NewSlide) Validate

func (m *NewSlide) Validate() error

Validate checks the field values on NewSlide with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type NewSlideValidationError

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

NewSlideValidationError is the validation error returned by NewSlide.Validate if the designated constraints aren't met.

func (NewSlideValidationError) Cause

func (e NewSlideValidationError) Cause() error

Cause function returns cause value.

func (NewSlideValidationError) Error

func (e NewSlideValidationError) Error() string

Error satisfies the builtin error interface

func (NewSlideValidationError) ErrorName

func (e NewSlideValidationError) ErrorName() string

ErrorName returns error name.

func (NewSlideValidationError) Field

func (e NewSlideValidationError) Field() string

Field function returns field value.

func (NewSlideValidationError) Key

func (e NewSlideValidationError) Key() bool

Key function returns key value.

func (NewSlideValidationError) Reason

func (e NewSlideValidationError) Reason() string

Reason function returns reason value.

type RemoveSlideV1Request

type RemoveSlideV1Request struct {
	SlideId uint64 `protobuf:"varint,1,opt,name=slide_id,json=slideId,proto3" json:"slide_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveSlideV1Request) Descriptor deprecated

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

Deprecated: Use RemoveSlideV1Request.ProtoReflect.Descriptor instead.

func (*RemoveSlideV1Request) GetSlideId

func (x *RemoveSlideV1Request) GetSlideId() uint64

func (*RemoveSlideV1Request) ProtoMessage

func (*RemoveSlideV1Request) ProtoMessage()

func (*RemoveSlideV1Request) ProtoReflect

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

func (*RemoveSlideV1Request) Reset

func (x *RemoveSlideV1Request) Reset()

func (*RemoveSlideV1Request) String

func (x *RemoveSlideV1Request) String() string

func (*RemoveSlideV1Request) Validate

func (m *RemoveSlideV1Request) Validate() error

Validate checks the field values on RemoveSlideV1Request with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type RemoveSlideV1RequestValidationError

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

RemoveSlideV1RequestValidationError is the validation error returned by RemoveSlideV1Request.Validate if the designated constraints aren't met.

func (RemoveSlideV1RequestValidationError) Cause

Cause function returns cause value.

func (RemoveSlideV1RequestValidationError) Error

Error satisfies the builtin error interface

func (RemoveSlideV1RequestValidationError) ErrorName

ErrorName returns error name.

func (RemoveSlideV1RequestValidationError) Field

Field function returns field value.

func (RemoveSlideV1RequestValidationError) Key

Key function returns key value.

func (RemoveSlideV1RequestValidationError) Reason

Reason function returns reason value.

type RemoveSlideV1Response

type RemoveSlideV1Response struct {
	Found bool `protobuf:"varint,1,opt,name=found,proto3" json:"found,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveSlideV1Response) Descriptor deprecated

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

Deprecated: Use RemoveSlideV1Response.ProtoReflect.Descriptor instead.

func (*RemoveSlideV1Response) GetFound

func (x *RemoveSlideV1Response) GetFound() bool

func (*RemoveSlideV1Response) ProtoMessage

func (*RemoveSlideV1Response) ProtoMessage()

func (*RemoveSlideV1Response) ProtoReflect

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

func (*RemoveSlideV1Response) Reset

func (x *RemoveSlideV1Response) Reset()

func (*RemoveSlideV1Response) String

func (x *RemoveSlideV1Response) String() string

func (*RemoveSlideV1Response) Validate

func (m *RemoveSlideV1Response) Validate() error

Validate checks the field values on RemoveSlideV1Response with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type RemoveSlideV1ResponseValidationError

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

RemoveSlideV1ResponseValidationError is the validation error returned by RemoveSlideV1Response.Validate if the designated constraints aren't met.

func (RemoveSlideV1ResponseValidationError) Cause

Cause function returns cause value.

func (RemoveSlideV1ResponseValidationError) Error

Error satisfies the builtin error interface

func (RemoveSlideV1ResponseValidationError) ErrorName

ErrorName returns error name.

func (RemoveSlideV1ResponseValidationError) Field

Field function returns field value.

func (RemoveSlideV1ResponseValidationError) Key

Key function returns key value.

func (RemoveSlideV1ResponseValidationError) Reason

Reason function returns reason value.

type Slide

type Slide struct {
	Id             uint64      `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	PresentationId uint64      `protobuf:"varint,2,opt,name=presentation_id,json=presentationId,proto3" json:"presentation_id,omitempty"`
	Number         uint64      `protobuf:"varint,3,opt,name=number,proto3" json:"number,omitempty"`
	Type           ContentType `protobuf:"varint,4,opt,name=type,proto3,enum=ocp.slide.api.ContentType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Slide) Descriptor deprecated

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

Deprecated: Use Slide.ProtoReflect.Descriptor instead.

func (*Slide) GetId

func (x *Slide) GetId() uint64

func (*Slide) GetNumber

func (x *Slide) GetNumber() uint64

func (*Slide) GetPresentationId

func (x *Slide) GetPresentationId() uint64

func (*Slide) GetType

func (x *Slide) GetType() ContentType

func (*Slide) ProtoMessage

func (*Slide) ProtoMessage()

func (*Slide) ProtoReflect

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

func (*Slide) Reset

func (x *Slide) Reset()

func (*Slide) String

func (x *Slide) String() string

func (*Slide) Validate

func (m *Slide) Validate() error

Validate checks the field values on Slide with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type SlideAPIClient

type SlideAPIClient interface {
	// Creates a new slide
	CreateSlideV1(ctx context.Context, in *CreateSlideV1Request, opts ...grpc.CallOption) (*CreateSlideV1Response, error)
	// Creates new slides
	MultiCreateSlidesV1(ctx context.Context, in *MultiCreateSlidesV1Request, opts ...grpc.CallOption) (*MultiCreateSlidesV1Response, error)
	// Updates a slide
	UpdateSlideV1(ctx context.Context, in *UpdateSlideV1Request, opts ...grpc.CallOption) (*UpdateSlideV1Response, error)
	// Returns a slide by id
	DescribeSlideV1(ctx context.Context, in *DescribeSlideV1Request, opts ...grpc.CallOption) (*DescribeSlideV1Response, error)
	// Returns a list of slides
	ListSlidesV1(ctx context.Context, in *ListSlidesV1Request, opts ...grpc.CallOption) (*ListSlidesV1Response, error)
	// Removes a slide by id
	RemoveSlideV1(ctx context.Context, in *RemoveSlideV1Request, opts ...grpc.CallOption) (*RemoveSlideV1Response, error)
}

SlideAPIClient is the client API for SlideAPI 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 NewSlideAPIClient

func NewSlideAPIClient(cc grpc.ClientConnInterface) SlideAPIClient

type SlideAPIServer

type SlideAPIServer interface {
	// Creates a new slide
	CreateSlideV1(context.Context, *CreateSlideV1Request) (*CreateSlideV1Response, error)
	// Creates new slides
	MultiCreateSlidesV1(context.Context, *MultiCreateSlidesV1Request) (*MultiCreateSlidesV1Response, error)
	// Updates a slide
	UpdateSlideV1(context.Context, *UpdateSlideV1Request) (*UpdateSlideV1Response, error)
	// Returns a slide by id
	DescribeSlideV1(context.Context, *DescribeSlideV1Request) (*DescribeSlideV1Response, error)
	// Returns a list of slides
	ListSlidesV1(context.Context, *ListSlidesV1Request) (*ListSlidesV1Response, error)
	// Removes a slide by id
	RemoveSlideV1(context.Context, *RemoveSlideV1Request) (*RemoveSlideV1Response, error)
	// contains filtered or unexported methods
}

SlideAPIServer is the server API for SlideAPI service. All implementations must embed UnimplementedSlideAPIServer for forward compatibility

type SlideValidationError

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

SlideValidationError is the validation error returned by Slide.Validate if the designated constraints aren't met.

func (SlideValidationError) Cause

func (e SlideValidationError) Cause() error

Cause function returns cause value.

func (SlideValidationError) Error

func (e SlideValidationError) Error() string

Error satisfies the builtin error interface

func (SlideValidationError) ErrorName

func (e SlideValidationError) ErrorName() string

ErrorName returns error name.

func (SlideValidationError) Field

func (e SlideValidationError) Field() string

Field function returns field value.

func (SlideValidationError) Key

func (e SlideValidationError) Key() bool

Key function returns key value.

func (SlideValidationError) Reason

func (e SlideValidationError) Reason() string

Reason function returns reason value.

type UnimplementedSlideAPIServer

type UnimplementedSlideAPIServer struct {
}

UnimplementedSlideAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedSlideAPIServer) CreateSlideV1

func (UnimplementedSlideAPIServer) DescribeSlideV1

func (UnimplementedSlideAPIServer) ListSlidesV1

func (UnimplementedSlideAPIServer) RemoveSlideV1

func (UnimplementedSlideAPIServer) UpdateSlideV1

type UnsafeSlideAPIServer

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

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

type UpdateSlideV1Request

type UpdateSlideV1Request struct {
	Slide *Slide `protobuf:"bytes,1,opt,name=slide,proto3" json:"slide,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateSlideV1Request) Descriptor deprecated

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

Deprecated: Use UpdateSlideV1Request.ProtoReflect.Descriptor instead.

func (*UpdateSlideV1Request) GetSlide

func (x *UpdateSlideV1Request) GetSlide() *Slide

func (*UpdateSlideV1Request) ProtoMessage

func (*UpdateSlideV1Request) ProtoMessage()

func (*UpdateSlideV1Request) ProtoReflect

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

func (*UpdateSlideV1Request) Reset

func (x *UpdateSlideV1Request) Reset()

func (*UpdateSlideV1Request) String

func (x *UpdateSlideV1Request) String() string

func (*UpdateSlideV1Request) Validate

func (m *UpdateSlideV1Request) Validate() error

Validate checks the field values on UpdateSlideV1Request with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UpdateSlideV1RequestValidationError

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

UpdateSlideV1RequestValidationError is the validation error returned by UpdateSlideV1Request.Validate if the designated constraints aren't met.

func (UpdateSlideV1RequestValidationError) Cause

Cause function returns cause value.

func (UpdateSlideV1RequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateSlideV1RequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateSlideV1RequestValidationError) Field

Field function returns field value.

func (UpdateSlideV1RequestValidationError) Key

Key function returns key value.

func (UpdateSlideV1RequestValidationError) Reason

Reason function returns reason value.

type UpdateSlideV1Response

type UpdateSlideV1Response struct {
	Found bool `protobuf:"varint,1,opt,name=found,proto3" json:"found,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateSlideV1Response) Descriptor deprecated

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

Deprecated: Use UpdateSlideV1Response.ProtoReflect.Descriptor instead.

func (*UpdateSlideV1Response) GetFound

func (x *UpdateSlideV1Response) GetFound() bool

func (*UpdateSlideV1Response) ProtoMessage

func (*UpdateSlideV1Response) ProtoMessage()

func (*UpdateSlideV1Response) ProtoReflect

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

func (*UpdateSlideV1Response) Reset

func (x *UpdateSlideV1Response) Reset()

func (*UpdateSlideV1Response) String

func (x *UpdateSlideV1Response) String() string

func (*UpdateSlideV1Response) Validate

func (m *UpdateSlideV1Response) Validate() error

Validate checks the field values on UpdateSlideV1Response with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UpdateSlideV1ResponseValidationError

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

UpdateSlideV1ResponseValidationError is the validation error returned by UpdateSlideV1Response.Validate if the designated constraints aren't met.

func (UpdateSlideV1ResponseValidationError) Cause

Cause function returns cause value.

func (UpdateSlideV1ResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateSlideV1ResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateSlideV1ResponseValidationError) Field

Field function returns field value.

func (UpdateSlideV1ResponseValidationError) Key

Key function returns key value.

func (UpdateSlideV1ResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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