amv1

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArticlesManager_GetArticles_FullMethodName          = "/github.chas3air.protos.articlesManager.ArticlesManager/GetArticles"
	ArticlesManager_GetArticleById_FullMethodName       = "/github.chas3air.protos.articlesManager.ArticlesManager/GetArticleById"
	ArticlesManager_GetArticlesByOwnerId_FullMethodName = "/github.chas3air.protos.articlesManager.ArticlesManager/GetArticlesByOwnerId"
	ArticlesManager_InsertArticle_FullMethodName        = "/github.chas3air.protos.articlesManager.ArticlesManager/InsertArticle"
	ArticlesManager_UpdateArticle_FullMethodName        = "/github.chas3air.protos.articlesManager.ArticlesManager/UpdateArticle"
	ArticlesManager_DeleteArticle_FullMethodName        = "/github.chas3air.protos.articlesManager.ArticlesManager/DeleteArticle"
)

Variables

View Source
var ArticlesManager_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "github.chas3air.protos.articlesManager.ArticlesManager",
	HandlerType: (*ArticlesManagerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetArticles",
			Handler:    _ArticlesManager_GetArticles_Handler,
		},
		{
			MethodName: "GetArticleById",
			Handler:    _ArticlesManager_GetArticleById_Handler,
		},
		{
			MethodName: "GetArticlesByOwnerId",
			Handler:    _ArticlesManager_GetArticlesByOwnerId_Handler,
		},
		{
			MethodName: "InsertArticle",
			Handler:    _ArticlesManager_InsertArticle_Handler,
		},
		{
			MethodName: "UpdateArticle",
			Handler:    _ArticlesManager_UpdateArticle_Handler,
		},
		{
			MethodName: "DeleteArticle",
			Handler:    _ArticlesManager_DeleteArticle_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "articlesManager/articlesManager.proto",
}

ArticlesManager_ServiceDesc is the grpc.ServiceDesc for ArticlesManager 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_articlesManager_articlesManager_proto protoreflect.FileDescriptor

Functions

func RegisterArticlesManagerServer

func RegisterArticlesManagerServer(s grpc.ServiceRegistrar, srv ArticlesManagerServer)

Types

type Article

type Article struct {
	Id        string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Title     string                 `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	Content   string                 `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
	OwnerId   string                 `protobuf:"bytes,5,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Article) Descriptor deprecated

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

Deprecated: Use Article.ProtoReflect.Descriptor instead.

func (*Article) GetContent

func (x *Article) GetContent() string

func (*Article) GetCreatedAt

func (x *Article) GetCreatedAt() *timestamppb.Timestamp

func (*Article) GetId

func (x *Article) GetId() string

func (*Article) GetOwnerId

func (x *Article) GetOwnerId() string

func (*Article) GetTitle

func (x *Article) GetTitle() string

func (*Article) ProtoMessage

func (*Article) ProtoMessage()

func (*Article) ProtoReflect

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

func (*Article) Reset

func (x *Article) Reset()

func (*Article) String

func (x *Article) String() string

type ArticlesManagerClient

type ArticlesManagerClient interface {
	GetArticles(ctx context.Context, in *GetArticlesRequest, opts ...grpc.CallOption) (*GetArticlesResponse, error)
	GetArticleById(ctx context.Context, in *GetArticleByIdRequest, opts ...grpc.CallOption) (*GetArticleByIdResponse, error)
	GetArticlesByOwnerId(ctx context.Context, in *GetArticlesByOwnerIdRequest, opts ...grpc.CallOption) (*GetArticlesByOwnerIdResponse, error)
	InsertArticle(ctx context.Context, in *InsertArticleRequest, opts ...grpc.CallOption) (*InsertArticleResponse, error)
	UpdateArticle(ctx context.Context, in *UpdateArticleRequest, opts ...grpc.CallOption) (*UpdateArticleResponse, error)
	DeleteArticle(ctx context.Context, in *DeleteArticleRequest, opts ...grpc.CallOption) (*DeleteArticleResponse, error)
}

ArticlesManagerClient is the client API for ArticlesManager 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 ArticlesManagerServer

ArticlesManagerServer is the server API for ArticlesManager service. All implementations must embed UnimplementedArticlesManagerServer for forward compatibility.

type DeleteArticleRequest

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

func (*DeleteArticleRequest) Descriptor deprecated

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

Deprecated: Use DeleteArticleRequest.ProtoReflect.Descriptor instead.

func (*DeleteArticleRequest) GetId

func (x *DeleteArticleRequest) GetId() string

func (*DeleteArticleRequest) ProtoMessage

func (*DeleteArticleRequest) ProtoMessage()

func (*DeleteArticleRequest) ProtoReflect

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

func (*DeleteArticleRequest) Reset

func (x *DeleteArticleRequest) Reset()

func (*DeleteArticleRequest) String

func (x *DeleteArticleRequest) String() string

type DeleteArticleResponse

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

func (*DeleteArticleResponse) Descriptor deprecated

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

Deprecated: Use DeleteArticleResponse.ProtoReflect.Descriptor instead.

func (*DeleteArticleResponse) GetArticle

func (x *DeleteArticleResponse) GetArticle() *Article

func (*DeleteArticleResponse) ProtoMessage

func (*DeleteArticleResponse) ProtoMessage()

func (*DeleteArticleResponse) ProtoReflect

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

func (*DeleteArticleResponse) Reset

func (x *DeleteArticleResponse) Reset()

func (*DeleteArticleResponse) String

func (x *DeleteArticleResponse) String() string

type GetArticleByIdRequest

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

func (*GetArticleByIdRequest) Descriptor deprecated

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

Deprecated: Use GetArticleByIdRequest.ProtoReflect.Descriptor instead.

func (*GetArticleByIdRequest) GetArticleId

func (x *GetArticleByIdRequest) GetArticleId() string

func (*GetArticleByIdRequest) ProtoMessage

func (*GetArticleByIdRequest) ProtoMessage()

func (*GetArticleByIdRequest) ProtoReflect

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

func (*GetArticleByIdRequest) Reset

func (x *GetArticleByIdRequest) Reset()

func (*GetArticleByIdRequest) String

func (x *GetArticleByIdRequest) String() string

type GetArticleByIdResponse

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

func (*GetArticleByIdResponse) Descriptor deprecated

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

Deprecated: Use GetArticleByIdResponse.ProtoReflect.Descriptor instead.

func (*GetArticleByIdResponse) GetArticle

func (x *GetArticleByIdResponse) GetArticle() *Article

func (*GetArticleByIdResponse) ProtoMessage

func (*GetArticleByIdResponse) ProtoMessage()

func (*GetArticleByIdResponse) ProtoReflect

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

func (*GetArticleByIdResponse) Reset

func (x *GetArticleByIdResponse) Reset()

func (*GetArticleByIdResponse) String

func (x *GetArticleByIdResponse) String() string

type GetArticlesByOwnerIdRequest added in v0.3.3

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

func (*GetArticlesByOwnerIdRequest) Descriptor deprecated added in v0.3.3

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

Deprecated: Use GetArticlesByOwnerIdRequest.ProtoReflect.Descriptor instead.

func (*GetArticlesByOwnerIdRequest) GetOwnerId added in v0.3.3

func (x *GetArticlesByOwnerIdRequest) GetOwnerId() string

func (*GetArticlesByOwnerIdRequest) ProtoMessage added in v0.3.3

func (*GetArticlesByOwnerIdRequest) ProtoMessage()

func (*GetArticlesByOwnerIdRequest) ProtoReflect added in v0.3.3

func (*GetArticlesByOwnerIdRequest) Reset added in v0.3.3

func (x *GetArticlesByOwnerIdRequest) Reset()

func (*GetArticlesByOwnerIdRequest) String added in v0.3.3

func (x *GetArticlesByOwnerIdRequest) String() string

type GetArticlesByOwnerIdResponse added in v0.3.3

type GetArticlesByOwnerIdResponse struct {
	Articles []*Article `protobuf:"bytes,1,rep,name=articles,proto3" json:"articles,omitempty"`
	// contains filtered or unexported fields
}

func (*GetArticlesByOwnerIdResponse) Descriptor deprecated added in v0.3.3

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

Deprecated: Use GetArticlesByOwnerIdResponse.ProtoReflect.Descriptor instead.

func (*GetArticlesByOwnerIdResponse) GetArticles added in v0.3.3

func (x *GetArticlesByOwnerIdResponse) GetArticles() []*Article

func (*GetArticlesByOwnerIdResponse) ProtoMessage added in v0.3.3

func (*GetArticlesByOwnerIdResponse) ProtoMessage()

func (*GetArticlesByOwnerIdResponse) ProtoReflect added in v0.3.3

func (*GetArticlesByOwnerIdResponse) Reset added in v0.3.3

func (x *GetArticlesByOwnerIdResponse) Reset()

func (*GetArticlesByOwnerIdResponse) String added in v0.3.3

type GetArticlesRequest

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

func (*GetArticlesRequest) Descriptor deprecated

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

Deprecated: Use GetArticlesRequest.ProtoReflect.Descriptor instead.

func (*GetArticlesRequest) ProtoMessage

func (*GetArticlesRequest) ProtoMessage()

func (*GetArticlesRequest) ProtoReflect

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

func (*GetArticlesRequest) Reset

func (x *GetArticlesRequest) Reset()

func (*GetArticlesRequest) String

func (x *GetArticlesRequest) String() string

type GetArticlesResponse

type GetArticlesResponse struct {
	Articles []*Article `protobuf:"bytes,1,rep,name=articles,proto3" json:"articles,omitempty"`
	// contains filtered or unexported fields
}

func (*GetArticlesResponse) Descriptor deprecated

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

Deprecated: Use GetArticlesResponse.ProtoReflect.Descriptor instead.

func (*GetArticlesResponse) GetArticles

func (x *GetArticlesResponse) GetArticles() []*Article

func (*GetArticlesResponse) ProtoMessage

func (*GetArticlesResponse) ProtoMessage()

func (*GetArticlesResponse) ProtoReflect

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

func (*GetArticlesResponse) Reset

func (x *GetArticlesResponse) Reset()

func (*GetArticlesResponse) String

func (x *GetArticlesResponse) String() string

type InsertArticleRequest

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

func (*InsertArticleRequest) Descriptor deprecated

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

Deprecated: Use InsertArticleRequest.ProtoReflect.Descriptor instead.

func (*InsertArticleRequest) GetArticle

func (x *InsertArticleRequest) GetArticle() *Article

func (*InsertArticleRequest) ProtoMessage

func (*InsertArticleRequest) ProtoMessage()

func (*InsertArticleRequest) ProtoReflect

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

func (*InsertArticleRequest) Reset

func (x *InsertArticleRequest) Reset()

func (*InsertArticleRequest) String

func (x *InsertArticleRequest) String() string

type InsertArticleResponse

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

func (*InsertArticleResponse) Descriptor deprecated

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

Deprecated: Use InsertArticleResponse.ProtoReflect.Descriptor instead.

func (*InsertArticleResponse) GetArticle added in v0.3.9

func (x *InsertArticleResponse) GetArticle() *Article

func (*InsertArticleResponse) ProtoMessage

func (*InsertArticleResponse) ProtoMessage()

func (*InsertArticleResponse) ProtoReflect

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

func (*InsertArticleResponse) Reset

func (x *InsertArticleResponse) Reset()

func (*InsertArticleResponse) String

func (x *InsertArticleResponse) String() string

type UnimplementedArticlesManagerServer

type UnimplementedArticlesManagerServer struct{}

UnimplementedArticlesManagerServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedArticlesManagerServer) DeleteArticle

func (UnimplementedArticlesManagerServer) GetArticleById

func (UnimplementedArticlesManagerServer) GetArticles

func (UnimplementedArticlesManagerServer) GetArticlesByOwnerId added in v0.3.3

func (UnimplementedArticlesManagerServer) InsertArticle

func (UnimplementedArticlesManagerServer) UpdateArticle

type UnsafeArticlesManagerServer

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

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

type UpdateArticleRequest

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

func (*UpdateArticleRequest) Descriptor deprecated

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

Deprecated: Use UpdateArticleRequest.ProtoReflect.Descriptor instead.

func (*UpdateArticleRequest) GetArticle

func (x *UpdateArticleRequest) GetArticle() *Article

func (*UpdateArticleRequest) GetId

func (x *UpdateArticleRequest) GetId() string

func (*UpdateArticleRequest) ProtoMessage

func (*UpdateArticleRequest) ProtoMessage()

func (*UpdateArticleRequest) ProtoReflect

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

func (*UpdateArticleRequest) Reset

func (x *UpdateArticleRequest) Reset()

func (*UpdateArticleRequest) String

func (x *UpdateArticleRequest) String() string

type UpdateArticleResponse

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

func (*UpdateArticleResponse) Descriptor deprecated

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

Deprecated: Use UpdateArticleResponse.ProtoReflect.Descriptor instead.

func (*UpdateArticleResponse) GetArticle added in v0.3.9

func (x *UpdateArticleResponse) GetArticle() *Article

func (*UpdateArticleResponse) ProtoMessage

func (*UpdateArticleResponse) ProtoMessage()

func (*UpdateArticleResponse) ProtoReflect

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

func (*UpdateArticleResponse) Reset

func (x *UpdateArticleResponse) Reset()

func (*UpdateArticleResponse) String

func (x *UpdateArticleResponse) String() string

Jump to

Keyboard shortcuts

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