contentpb

package
v0.0.0-...-12f1028 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_content_proto protoreflect.FileDescriptor
View Source
var Nexivil_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "contents.Nexivil",
	HandlerType: (*NexivilServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "NexivilContent",
			Handler:       _Nexivil_NexivilContent_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "content.proto",
}

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

Functions

func RegisterNexivilServer

func RegisterNexivilServer(s grpc.ServiceRegistrar, srv NexivilServer)

Types

type ContentRequest

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

func (*ContentRequest) Descriptor deprecated

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

Deprecated: Use ContentRequest.ProtoReflect.Descriptor instead.

func (*ContentRequest) GetProjectName

func (x *ContentRequest) GetProjectName() string

func (*ContentRequest) ProtoMessage

func (*ContentRequest) ProtoMessage()

func (*ContentRequest) ProtoReflect

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

func (*ContentRequest) Reset

func (x *ContentRequest) Reset()

func (*ContentRequest) String

func (x *ContentRequest) String() string

type ContentResponse

type ContentResponse struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Date        string `protobuf:"bytes,2,opt,name=date,proto3" json:"date,omitempty"`
	ProjectName string `protobuf:"bytes,3,opt,name=project_name,json=projectName,proto3" json:"project_name,omitempty"`
	Content     string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*ContentResponse) Descriptor deprecated

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

Deprecated: Use ContentResponse.ProtoReflect.Descriptor instead.

func (*ContentResponse) GetContent

func (x *ContentResponse) GetContent() string

func (*ContentResponse) GetDate

func (x *ContentResponse) GetDate() string

func (*ContentResponse) GetId

func (x *ContentResponse) GetId() string

func (*ContentResponse) GetProjectName

func (x *ContentResponse) GetProjectName() string

func (*ContentResponse) ProtoMessage

func (*ContentResponse) ProtoMessage()

func (*ContentResponse) ProtoReflect

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

func (*ContentResponse) Reset

func (x *ContentResponse) Reset()

func (*ContentResponse) String

func (x *ContentResponse) String() string

type NexivilClient

type NexivilClient interface {
	NexivilContent(ctx context.Context, in *ContentRequest, opts ...grpc.CallOption) (Nexivil_NexivilContentClient, error)
}

NexivilClient is the client API for Nexivil 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 NewNexivilClient

func NewNexivilClient(cc grpc.ClientConnInterface) NexivilClient

type NexivilServer

type NexivilServer interface {
	NexivilContent(*ContentRequest, Nexivil_NexivilContentServer) error
	// contains filtered or unexported methods
}

NexivilServer is the server API for Nexivil service. All implementations must embed UnimplementedNexivilServer for forward compatibility

type Nexivil_NexivilContentClient

type Nexivil_NexivilContentClient interface {
	Recv() (*ContentResponse, error)
	grpc.ClientStream
}

type Nexivil_NexivilContentServer

type Nexivil_NexivilContentServer interface {
	Send(*ContentResponse) error
	grpc.ServerStream
}

type UnimplementedNexivilServer

type UnimplementedNexivilServer struct {
}

UnimplementedNexivilServer must be embedded to have forward compatible implementations.

func (UnimplementedNexivilServer) NexivilContent

type UnsafeNexivilServer

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

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

Jump to

Keyboard shortcuts

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