update blog/posts and go mod

This commit is contained in:
Asim Aslam
2021-01-27 14:47:22 +00:00
parent fc7c6e0870
commit 87348d1908
8 changed files with 545 additions and 742 deletions

View File

@@ -39,3 +39,17 @@ func (e *Blog) Latest(ctx context.Context, req *proto.LatestRequest, rsp *proto.
return nil return nil
} }
func (e *Blog) Posts(ctx context.Context, req *proto.PostsRequest, rsp *proto.PostsResponse) error {
resp, err := e.ps.Query(ctx, &posts.QueryRequest{
Limit: req.Limit,
Offset: req.Offset,
})
if err != nil {
return err
}
rsp.Posts = resp.Posts
return nil
}

View File

@@ -1,211 +1,206 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.6.1
// source: proto/blog.proto // source: proto/blog.proto
package blog package blog
import ( import (
fmt "fmt"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
proto1 "github.com/micro/services/posts/proto" proto1 "github.com/micro/services/posts/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect" math "math"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
) )
const ( // Reference imports to suppress errors if they are not otherwise used.
// Verify that this generated code is sufficiently up-to-date. var _ = proto.Marshal
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) var _ = fmt.Errorf
// Verify that runtime/protoimpl is sufficiently up-to-date. var _ = math.Inf
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version // This is a compile-time assertion to ensure that this generated file
// of the legacy proto package is being used. // is compatible with the proto package it is being compiled against.
const _ = proto.ProtoPackageIsVersion4 // A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type LatestRequest struct { type LatestRequest struct {
state protoimpl.MessageState XXX_NoUnkeyedLiteral struct{} `json:"-"`
sizeCache protoimpl.SizeCache XXX_unrecognized []byte `json:"-"`
unknownFields protoimpl.UnknownFields XXX_sizecache int32 `json:"-"`
} }
func (x *LatestRequest) Reset() { func (m *LatestRequest) Reset() { *m = LatestRequest{} }
*x = LatestRequest{} func (m *LatestRequest) String() string { return proto.CompactTextString(m) }
if protoimpl.UnsafeEnabled { func (*LatestRequest) ProtoMessage() {}
mi := &file_proto_blog_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LatestRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LatestRequest) ProtoMessage() {}
func (x *LatestRequest) ProtoReflect() protoreflect.Message {
mi := &file_proto_blog_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LatestRequest.ProtoReflect.Descriptor instead.
func (*LatestRequest) Descriptor() ([]byte, []int) { func (*LatestRequest) Descriptor() ([]byte, []int) {
return file_proto_blog_proto_rawDescGZIP(), []int{0} return fileDescriptor_fc5203cdc85000bc, []int{0}
} }
func (m *LatestRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LatestRequest.Unmarshal(m, b)
}
func (m *LatestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LatestRequest.Marshal(b, m, deterministic)
}
func (m *LatestRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_LatestRequest.Merge(m, src)
}
func (m *LatestRequest) XXX_Size() int {
return xxx_messageInfo_LatestRequest.Size(m)
}
func (m *LatestRequest) XXX_DiscardUnknown() {
xxx_messageInfo_LatestRequest.DiscardUnknown(m)
}
var xxx_messageInfo_LatestRequest proto.InternalMessageInfo
type LatestResponse struct { type LatestResponse struct {
state protoimpl.MessageState Latest *proto1.Post `protobuf:"bytes,1,opt,name=latest,proto3" json:"latest,omitempty"`
sizeCache protoimpl.SizeCache XXX_NoUnkeyedLiteral struct{} `json:"-"`
unknownFields protoimpl.UnknownFields XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Latest *proto1.Post `protobuf:"bytes,1,opt,name=latest,proto3" json:"latest,omitempty"`
} }
func (x *LatestResponse) Reset() { func (m *LatestResponse) Reset() { *m = LatestResponse{} }
*x = LatestResponse{} func (m *LatestResponse) String() string { return proto.CompactTextString(m) }
if protoimpl.UnsafeEnabled { func (*LatestResponse) ProtoMessage() {}
mi := &file_proto_blog_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LatestResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LatestResponse) ProtoMessage() {}
func (x *LatestResponse) ProtoReflect() protoreflect.Message {
mi := &file_proto_blog_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LatestResponse.ProtoReflect.Descriptor instead.
func (*LatestResponse) Descriptor() ([]byte, []int) { func (*LatestResponse) Descriptor() ([]byte, []int) {
return file_proto_blog_proto_rawDescGZIP(), []int{1} return fileDescriptor_fc5203cdc85000bc, []int{1}
} }
func (x *LatestResponse) GetLatest() *proto1.Post { func (m *LatestResponse) XXX_Unmarshal(b []byte) error {
if x != nil { return xxx_messageInfo_LatestResponse.Unmarshal(m, b)
return x.Latest }
func (m *LatestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LatestResponse.Marshal(b, m, deterministic)
}
func (m *LatestResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_LatestResponse.Merge(m, src)
}
func (m *LatestResponse) XXX_Size() int {
return xxx_messageInfo_LatestResponse.Size(m)
}
func (m *LatestResponse) XXX_DiscardUnknown() {
xxx_messageInfo_LatestResponse.DiscardUnknown(m)
}
var xxx_messageInfo_LatestResponse proto.InternalMessageInfo
func (m *LatestResponse) GetLatest() *proto1.Post {
if m != nil {
return m.Latest
} }
return nil return nil
} }
var File_proto_blog_proto protoreflect.FileDescriptor type PostsRequest struct {
Limit int64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
var file_proto_blog_proto_rawDesc = []byte{ Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, XXX_NoUnkeyedLiteral struct{} `json:"-"`
0x74, 0x6f, 0x12, 0x04, 0x62, 0x6c, 0x6f, 0x67, 0x1a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, XXX_unrecognized []byte `json:"-"`
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, XXX_sizecache int32 `json:"-"`
0x63, 0x65, 0x73, 0x2f, 0x62, 0x6c, 0x6f, 0x67, 0x2f, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x2f, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x22, 0x0f, 0x0a, 0x0d, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x22, 0x35, 0x0a, 0x0e, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x06, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x2e, 0x50, 0x6f, 0x73, 0x74,
0x52, 0x06, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x32, 0x3d, 0x0a, 0x04, 0x42, 0x6c, 0x6f, 0x67,
0x12, 0x35, 0x0a, 0x06, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x12, 0x13, 0x2e, 0x62, 0x6c, 0x6f,
0x67, 0x2e, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x14, 0x2e, 0x62, 0x6c, 0x6f, 0x67, 0x2e, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( func (m *PostsRequest) Reset() { *m = PostsRequest{} }
file_proto_blog_proto_rawDescOnce sync.Once func (m *PostsRequest) String() string { return proto.CompactTextString(m) }
file_proto_blog_proto_rawDescData = file_proto_blog_proto_rawDesc func (*PostsRequest) ProtoMessage() {}
) func (*PostsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_fc5203cdc85000bc, []int{2}
func file_proto_blog_proto_rawDescGZIP() []byte {
file_proto_blog_proto_rawDescOnce.Do(func() {
file_proto_blog_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_blog_proto_rawDescData)
})
return file_proto_blog_proto_rawDescData
} }
var file_proto_blog_proto_msgTypes = make([]protoimpl.MessageInfo, 2) func (m *PostsRequest) XXX_Unmarshal(b []byte) error {
var file_proto_blog_proto_goTypes = []interface{}{ return xxx_messageInfo_PostsRequest.Unmarshal(m, b)
(*LatestRequest)(nil), // 0: blog.LatestRequest
(*LatestResponse)(nil), // 1: blog.LatestResponse
(*proto1.Post)(nil), // 2: posts.Post
} }
var file_proto_blog_proto_depIdxs = []int32{ func (m *PostsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
2, // 0: blog.LatestResponse.latest:type_name -> posts.Post return xxx_messageInfo_PostsRequest.Marshal(b, m, deterministic)
0, // 1: blog.Blog.Latest:input_type -> blog.LatestRequest }
1, // 2: blog.Blog.Latest:output_type -> blog.LatestResponse func (m *PostsRequest) XXX_Merge(src proto.Message) {
2, // [2:3] is the sub-list for method output_type xxx_messageInfo_PostsRequest.Merge(m, src)
1, // [1:2] is the sub-list for method input_type }
1, // [1:1] is the sub-list for extension type_name func (m *PostsRequest) XXX_Size() int {
1, // [1:1] is the sub-list for extension extendee return xxx_messageInfo_PostsRequest.Size(m)
0, // [0:1] is the sub-list for field type_name }
func (m *PostsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PostsRequest.DiscardUnknown(m)
} }
func init() { file_proto_blog_proto_init() } var xxx_messageInfo_PostsRequest proto.InternalMessageInfo
func file_proto_blog_proto_init() {
if File_proto_blog_proto != nil { func (m *PostsRequest) GetLimit() int64 {
return if m != nil {
return m.Limit
} }
if !protoimpl.UnsafeEnabled { return 0
file_proto_blog_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { }
switch v := v.(*LatestRequest); i {
case 0: func (m *PostsRequest) GetOffset() int64 {
return &v.state if m != nil {
case 1: return m.Offset
return &v.sizeCache }
case 2: return 0
return &v.unknownFields }
default:
return nil type PostsResponse struct {
} Posts []*proto1.Post `protobuf:"bytes,1,rep,name=posts,proto3" json:"posts,omitempty"`
} XXX_NoUnkeyedLiteral struct{} `json:"-"`
file_proto_blog_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { XXX_unrecognized []byte `json:"-"`
switch v := v.(*LatestResponse); i { XXX_sizecache int32 `json:"-"`
case 0: }
return &v.state
case 1: func (m *PostsResponse) Reset() { *m = PostsResponse{} }
return &v.sizeCache func (m *PostsResponse) String() string { return proto.CompactTextString(m) }
case 2: func (*PostsResponse) ProtoMessage() {}
return &v.unknownFields func (*PostsResponse) Descriptor() ([]byte, []int) {
default: return fileDescriptor_fc5203cdc85000bc, []int{3}
return nil }
}
} func (m *PostsResponse) XXX_Unmarshal(b []byte) error {
} return xxx_messageInfo_PostsResponse.Unmarshal(m, b)
type x struct{} }
out := protoimpl.TypeBuilder{ func (m *PostsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
File: protoimpl.DescBuilder{ return xxx_messageInfo_PostsResponse.Marshal(b, m, deterministic)
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), }
RawDescriptor: file_proto_blog_proto_rawDesc, func (m *PostsResponse) XXX_Merge(src proto.Message) {
NumEnums: 0, xxx_messageInfo_PostsResponse.Merge(m, src)
NumMessages: 2, }
NumExtensions: 0, func (m *PostsResponse) XXX_Size() int {
NumServices: 1, return xxx_messageInfo_PostsResponse.Size(m)
}, }
GoTypes: file_proto_blog_proto_goTypes, func (m *PostsResponse) XXX_DiscardUnknown() {
DependencyIndexes: file_proto_blog_proto_depIdxs, xxx_messageInfo_PostsResponse.DiscardUnknown(m)
MessageInfos: file_proto_blog_proto_msgTypes, }
}.Build()
File_proto_blog_proto = out.File var xxx_messageInfo_PostsResponse proto.InternalMessageInfo
file_proto_blog_proto_rawDesc = nil
file_proto_blog_proto_goTypes = nil func (m *PostsResponse) GetPosts() []*proto1.Post {
file_proto_blog_proto_depIdxs = nil if m != nil {
return m.Posts
}
return nil
}
func init() {
proto.RegisterType((*LatestRequest)(nil), "blog.LatestRequest")
proto.RegisterType((*LatestResponse)(nil), "blog.LatestResponse")
proto.RegisterType((*PostsRequest)(nil), "blog.PostsRequest")
proto.RegisterType((*PostsResponse)(nil), "blog.PostsResponse")
}
func init() { proto.RegisterFile("proto/blog.proto", fileDescriptor_fc5203cdc85000bc) }
var fileDescriptor_fc5203cdc85000bc = []byte{
// 238 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x50, 0xb1, 0x4e, 0xc3, 0x30,
0x10, 0x25, 0xb4, 0xc9, 0x70, 0xa5, 0x80, 0xae, 0x15, 0x8a, 0x32, 0x15, 0xb3, 0x30, 0xc5, 0x22,
0xa8, 0x1b, 0x13, 0x33, 0x03, 0xca, 0x1f, 0x90, 0xc8, 0x0d, 0x96, 0x1c, 0x2e, 0xcd, 0xb9, 0x7c,
0x3f, 0xaa, 0xcf, 0x91, 0x48, 0xb7, 0xf7, 0xde, 0xf9, 0xbd, 0x77, 0x3e, 0xb8, 0x1f, 0x46, 0xf2,
0xa4, 0x1b, 0x47, 0x5d, 0x19, 0x20, 0x2e, 0xcf, 0xb8, 0x78, 0xe9, 0xac, 0xff, 0x3e, 0x35, 0x65,
0x4b, 0xbd, 0xee, 0x6d, 0x3b, 0x92, 0x66, 0x33, 0xfe, 0xda, 0xd6, 0xb0, 0x1e, 0x88, 0x3d, 0x6b,
0xf1, 0x05, 0x2c, 0x46, 0x75, 0x07, 0xeb, 0x8f, 0x2f, 0x6f, 0xd8, 0xd7, 0xe6, 0x78, 0x32, 0xec,
0xd5, 0x1e, 0x6e, 0x27, 0x81, 0x07, 0xfa, 0x61, 0x83, 0x4f, 0x90, 0xb9, 0xa0, 0xe4, 0xc9, 0x2e,
0x79, 0x5e, 0x55, 0xab, 0x52, 0x02, 0x3e, 0x89, 0x7d, 0x1d, 0x47, 0xea, 0x0d, 0x6e, 0xce, 0x9c,
0x63, 0x0c, 0x6e, 0x21, 0x75, 0xb6, 0xb7, 0xe2, 0x59, 0xd4, 0x42, 0xf0, 0x01, 0x32, 0x3a, 0x1c,
0xd8, 0xf8, 0xfc, 0x3a, 0xc8, 0x91, 0xa9, 0x0a, 0xd6, 0xd1, 0x1d, 0x3b, 0x1f, 0x21, 0x0d, 0x25,
0x79, 0xb2, 0x5b, 0x5c, 0x56, 0xca, 0xa4, 0x3a, 0xc2, 0xf2, 0xdd, 0x51, 0x87, 0x7b, 0xc8, 0x64,
0x61, 0xdc, 0x94, 0xe1, 0x22, 0xb3, 0xff, 0x14, 0xdb, 0xb9, 0x28, 0xf9, 0xea, 0x0a, 0x2b, 0x48,
0x43, 0x25, 0xa2, 0x3c, 0xf8, 0xbf, 0x7d, 0xb1, 0x99, 0x69, 0x93, 0xa7, 0xc9, 0xc2, 0xcd, 0x5e,
0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x04, 0x74, 0x9b, 0x75, 0x80, 0x01, 0x00, 0x00,
} }

View File

@@ -43,7 +43,10 @@ func NewBlogEndpoints() []*api.Endpoint {
// Client API for Blog service // Client API for Blog service
type BlogService interface { type BlogService interface {
// Latest returns the latest blog post
Latest(ctx context.Context, in *LatestRequest, opts ...client.CallOption) (*LatestResponse, error) Latest(ctx context.Context, in *LatestRequest, opts ...client.CallOption) (*LatestResponse, error)
// Posts returns all the posts
Posts(ctx context.Context, in *PostsRequest, opts ...client.CallOption) (*PostsResponse, error)
} }
type blogService struct { type blogService struct {
@@ -68,15 +71,29 @@ func (c *blogService) Latest(ctx context.Context, in *LatestRequest, opts ...cli
return out, nil return out, nil
} }
func (c *blogService) Posts(ctx context.Context, in *PostsRequest, opts ...client.CallOption) (*PostsResponse, error) {
req := c.c.NewRequest(c.name, "Blog.Posts", in)
out := new(PostsResponse)
err := c.c.Call(ctx, req, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for Blog service // Server API for Blog service
type BlogHandler interface { type BlogHandler interface {
// Latest returns the latest blog post
Latest(context.Context, *LatestRequest, *LatestResponse) error Latest(context.Context, *LatestRequest, *LatestResponse) error
// Posts returns all the posts
Posts(context.Context, *PostsRequest, *PostsResponse) error
} }
func RegisterBlogHandler(s server.Server, hdlr BlogHandler, opts ...server.HandlerOption) error { func RegisterBlogHandler(s server.Server, hdlr BlogHandler, opts ...server.HandlerOption) error {
type blog interface { type blog interface {
Latest(ctx context.Context, in *LatestRequest, out *LatestResponse) error Latest(ctx context.Context, in *LatestRequest, out *LatestResponse) error
Posts(ctx context.Context, in *PostsRequest, out *PostsResponse) error
} }
type Blog struct { type Blog struct {
blog blog
@@ -92,3 +109,7 @@ type blogHandler struct {
func (h *blogHandler) Latest(ctx context.Context, in *LatestRequest, out *LatestResponse) error { func (h *blogHandler) Latest(ctx context.Context, in *LatestRequest, out *LatestResponse) error {
return h.BlogHandler.Latest(ctx, in, out) return h.BlogHandler.Latest(ctx, in, out)
} }
func (h *blogHandler) Posts(ctx context.Context, in *PostsRequest, out *PostsResponse) error {
return h.BlogHandler.Posts(ctx, in, out)
}

View File

@@ -1,16 +1,27 @@
syntax = "proto3"; syntax = "proto3";
package blog; package blog;
option go_package = "proto;blog";
import "github.com/micro/services/posts/proto/posts.proto"; import "github.com/micro/services/posts/proto/posts.proto";
service Blog { service Blog {
// Latest returns the latest blog post
rpc Latest(LatestRequest) returns (LatestResponse) {} rpc Latest(LatestRequest) returns (LatestResponse) {}
// Posts returns all the posts
rpc Posts(PostsRequest) returns (PostsResponse) {};
} }
message LatestRequest {} message LatestRequest {}
message LatestResponse{ message LatestResponse{
posts.Post latest = 1; posts.Post latest = 1;
} }
message PostsRequest {
int64 limit = 1;
int64 offset = 2;
}
message PostsResponse {
repeated posts.Post posts = 1;
}

4
go.mod
View File

@@ -10,7 +10,7 @@ require (
github.com/gosimple/slug v1.9.0 github.com/gosimple/slug v1.9.0
github.com/hailocab/go-geoindex v0.0.0-20160127134810-64631bfe9711 github.com/hailocab/go-geoindex v0.0.0-20160127134810-64631bfe9711
github.com/micro/dev v0.0.0-20201117163752-d3cfc9788dfa github.com/micro/dev v0.0.0-20201117163752-d3cfc9788dfa
github.com/micro/micro/v3 v3.0.5-0.20210127125609-3c95b22d9553 github.com/micro/micro/v3 v3.0.5-0.20210127143903-789ea1c27f67
github.com/miekg/dns v1.1.31 // indirect github.com/miekg/dns v1.1.31 // indirect
github.com/stoewer/go-strcase v1.2.0 github.com/stoewer/go-strcase v1.2.0
github.com/stretchr/testify v1.6.1 github.com/stretchr/testify v1.6.1
@@ -20,7 +20,7 @@ require (
golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43 // indirect golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43 // indirect
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f // indirect golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f // indirect
google.golang.org/genproto v0.0.0-20201001141541-efaab9d3c4f7 // indirect google.golang.org/genproto v0.0.0-20201001141541-efaab9d3c4f7 // indirect
google.golang.org/grpc v1.32.0 // indirect google.golang.org/grpc v1.32.0
google.golang.org/protobuf v1.25.0 google.golang.org/protobuf v1.25.0
googlemaps.github.io/maps v1.3.1 googlemaps.github.io/maps v1.3.1
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect

2
go.sum
View File

@@ -423,6 +423,8 @@ github.com/micro/micro/v3 v3.0.5-0.20210127114057-8b4be865b86a h1:2dOu2GU5PPy8BL
github.com/micro/micro/v3 v3.0.5-0.20210127114057-8b4be865b86a/go.mod h1:+WoC+lHuRy8FIgJlNuLkhpmsFbylYb0vYcEgMpKT4Z4= github.com/micro/micro/v3 v3.0.5-0.20210127114057-8b4be865b86a/go.mod h1:+WoC+lHuRy8FIgJlNuLkhpmsFbylYb0vYcEgMpKT4Z4=
github.com/micro/micro/v3 v3.0.5-0.20210127125609-3c95b22d9553 h1:Ucgp8KlMJeaGzOZOfDnZCxBd0xkoBf6v1Vtv7LByJP0= github.com/micro/micro/v3 v3.0.5-0.20210127125609-3c95b22d9553 h1:Ucgp8KlMJeaGzOZOfDnZCxBd0xkoBf6v1Vtv7LByJP0=
github.com/micro/micro/v3 v3.0.5-0.20210127125609-3c95b22d9553/go.mod h1:+WoC+lHuRy8FIgJlNuLkhpmsFbylYb0vYcEgMpKT4Z4= github.com/micro/micro/v3 v3.0.5-0.20210127125609-3c95b22d9553/go.mod h1:+WoC+lHuRy8FIgJlNuLkhpmsFbylYb0vYcEgMpKT4Z4=
github.com/micro/micro/v3 v3.0.5-0.20210127143903-789ea1c27f67 h1:cw9gVgwpc0p2/MqRGDFO22JOpr01d4QJ8JL5ZeXk3T4=
github.com/micro/micro/v3 v3.0.5-0.20210127143903-789ea1c27f67/go.mod h1:+WoC+lHuRy8FIgJlNuLkhpmsFbylYb0vYcEgMpKT4Z4=
github.com/miekg/dns v1.1.15/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miekg/dns v1.1.15/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
github.com/miekg/dns v1.1.22/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= github.com/miekg/dns v1.1.22/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso=
github.com/miekg/dns v1.1.27/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM= github.com/miekg/dns v1.1.27/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM=

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,6 @@
syntax = "proto3"; syntax = "proto3";
package posts; package posts;
option go_package = "proto;posts";
service Posts { service Posts {
// Query currently only supports read by slug or timestamp, no listing. // Query currently only supports read by slug or timestamp, no listing.