update to standard name convention
This commit is contained in:
parent
9ea4919b9b
commit
8d6f82707a
@ -1,7 +1,7 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// source: proto/mucp.proto
|
// source: proto/service.proto
|
||||||
|
|
||||||
package mucp
|
package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
fmt "fmt"
|
fmt "fmt"
|
||||||
@ -35,7 +35,7 @@ func (m *ChangeSet) Reset() { *m = ChangeSet{} }
|
|||||||
func (m *ChangeSet) String() string { return proto.CompactTextString(m) }
|
func (m *ChangeSet) String() string { return proto.CompactTextString(m) }
|
||||||
func (*ChangeSet) ProtoMessage() {}
|
func (*ChangeSet) ProtoMessage() {}
|
||||||
func (*ChangeSet) Descriptor() ([]byte, []int) {
|
func (*ChangeSet) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_942f149553cfb65d, []int{0}
|
return fileDescriptor_c33392ef2c1961ba, []int{0}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *ChangeSet) XXX_Unmarshal(b []byte) error {
|
func (m *ChangeSet) XXX_Unmarshal(b []byte) error {
|
||||||
@ -104,7 +104,7 @@ func (m *Change) Reset() { *m = Change{} }
|
|||||||
func (m *Change) String() string { return proto.CompactTextString(m) }
|
func (m *Change) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Change) ProtoMessage() {}
|
func (*Change) ProtoMessage() {}
|
||||||
func (*Change) Descriptor() ([]byte, []int) {
|
func (*Change) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_942f149553cfb65d, []int{1}
|
return fileDescriptor_c33392ef2c1961ba, []int{1}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Change) XXX_Unmarshal(b []byte) error {
|
func (m *Change) XXX_Unmarshal(b []byte) error {
|
||||||
@ -157,7 +157,7 @@ func (m *CreateRequest) Reset() { *m = CreateRequest{} }
|
|||||||
func (m *CreateRequest) String() string { return proto.CompactTextString(m) }
|
func (m *CreateRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*CreateRequest) ProtoMessage() {}
|
func (*CreateRequest) ProtoMessage() {}
|
||||||
func (*CreateRequest) Descriptor() ([]byte, []int) {
|
func (*CreateRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_942f149553cfb65d, []int{2}
|
return fileDescriptor_c33392ef2c1961ba, []int{2}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *CreateRequest) XXX_Unmarshal(b []byte) error {
|
func (m *CreateRequest) XXX_Unmarshal(b []byte) error {
|
||||||
@ -195,7 +195,7 @@ func (m *CreateResponse) Reset() { *m = CreateResponse{} }
|
|||||||
func (m *CreateResponse) String() string { return proto.CompactTextString(m) }
|
func (m *CreateResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*CreateResponse) ProtoMessage() {}
|
func (*CreateResponse) ProtoMessage() {}
|
||||||
func (*CreateResponse) Descriptor() ([]byte, []int) {
|
func (*CreateResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_942f149553cfb65d, []int{3}
|
return fileDescriptor_c33392ef2c1961ba, []int{3}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *CreateResponse) XXX_Unmarshal(b []byte) error {
|
func (m *CreateResponse) XXX_Unmarshal(b []byte) error {
|
||||||
@ -227,7 +227,7 @@ func (m *UpdateRequest) Reset() { *m = UpdateRequest{} }
|
|||||||
func (m *UpdateRequest) String() string { return proto.CompactTextString(m) }
|
func (m *UpdateRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*UpdateRequest) ProtoMessage() {}
|
func (*UpdateRequest) ProtoMessage() {}
|
||||||
func (*UpdateRequest) Descriptor() ([]byte, []int) {
|
func (*UpdateRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_942f149553cfb65d, []int{4}
|
return fileDescriptor_c33392ef2c1961ba, []int{4}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *UpdateRequest) XXX_Unmarshal(b []byte) error {
|
func (m *UpdateRequest) XXX_Unmarshal(b []byte) error {
|
||||||
@ -265,7 +265,7 @@ func (m *UpdateResponse) Reset() { *m = UpdateResponse{} }
|
|||||||
func (m *UpdateResponse) String() string { return proto.CompactTextString(m) }
|
func (m *UpdateResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*UpdateResponse) ProtoMessage() {}
|
func (*UpdateResponse) ProtoMessage() {}
|
||||||
func (*UpdateResponse) Descriptor() ([]byte, []int) {
|
func (*UpdateResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_942f149553cfb65d, []int{5}
|
return fileDescriptor_c33392ef2c1961ba, []int{5}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *UpdateResponse) XXX_Unmarshal(b []byte) error {
|
func (m *UpdateResponse) XXX_Unmarshal(b []byte) error {
|
||||||
@ -297,7 +297,7 @@ func (m *DeleteRequest) Reset() { *m = DeleteRequest{} }
|
|||||||
func (m *DeleteRequest) String() string { return proto.CompactTextString(m) }
|
func (m *DeleteRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*DeleteRequest) ProtoMessage() {}
|
func (*DeleteRequest) ProtoMessage() {}
|
||||||
func (*DeleteRequest) Descriptor() ([]byte, []int) {
|
func (*DeleteRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_942f149553cfb65d, []int{6}
|
return fileDescriptor_c33392ef2c1961ba, []int{6}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *DeleteRequest) XXX_Unmarshal(b []byte) error {
|
func (m *DeleteRequest) XXX_Unmarshal(b []byte) error {
|
||||||
@ -335,7 +335,7 @@ func (m *DeleteResponse) Reset() { *m = DeleteResponse{} }
|
|||||||
func (m *DeleteResponse) String() string { return proto.CompactTextString(m) }
|
func (m *DeleteResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*DeleteResponse) ProtoMessage() {}
|
func (*DeleteResponse) ProtoMessage() {}
|
||||||
func (*DeleteResponse) Descriptor() ([]byte, []int) {
|
func (*DeleteResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_942f149553cfb65d, []int{7}
|
return fileDescriptor_c33392ef2c1961ba, []int{7}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *DeleteResponse) XXX_Unmarshal(b []byte) error {
|
func (m *DeleteResponse) XXX_Unmarshal(b []byte) error {
|
||||||
@ -366,7 +366,7 @@ func (m *ListRequest) Reset() { *m = ListRequest{} }
|
|||||||
func (m *ListRequest) String() string { return proto.CompactTextString(m) }
|
func (m *ListRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*ListRequest) ProtoMessage() {}
|
func (*ListRequest) ProtoMessage() {}
|
||||||
func (*ListRequest) Descriptor() ([]byte, []int) {
|
func (*ListRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_942f149553cfb65d, []int{8}
|
return fileDescriptor_c33392ef2c1961ba, []int{8}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *ListRequest) XXX_Unmarshal(b []byte) error {
|
func (m *ListRequest) XXX_Unmarshal(b []byte) error {
|
||||||
@ -388,7 +388,7 @@ func (m *ListRequest) XXX_DiscardUnknown() {
|
|||||||
var xxx_messageInfo_ListRequest proto.InternalMessageInfo
|
var xxx_messageInfo_ListRequest proto.InternalMessageInfo
|
||||||
|
|
||||||
type ListResponse struct {
|
type ListResponse struct {
|
||||||
Configs []*Change `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"`
|
Values []*Change `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
|
||||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
XXX_unrecognized []byte `json:"-"`
|
XXX_unrecognized []byte `json:"-"`
|
||||||
XXX_sizecache int32 `json:"-"`
|
XXX_sizecache int32 `json:"-"`
|
||||||
@ -398,7 +398,7 @@ func (m *ListResponse) Reset() { *m = ListResponse{} }
|
|||||||
func (m *ListResponse) String() string { return proto.CompactTextString(m) }
|
func (m *ListResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*ListResponse) ProtoMessage() {}
|
func (*ListResponse) ProtoMessage() {}
|
||||||
func (*ListResponse) Descriptor() ([]byte, []int) {
|
func (*ListResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_942f149553cfb65d, []int{9}
|
return fileDescriptor_c33392ef2c1961ba, []int{9}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *ListResponse) XXX_Unmarshal(b []byte) error {
|
func (m *ListResponse) XXX_Unmarshal(b []byte) error {
|
||||||
@ -419,9 +419,9 @@ func (m *ListResponse) XXX_DiscardUnknown() {
|
|||||||
|
|
||||||
var xxx_messageInfo_ListResponse proto.InternalMessageInfo
|
var xxx_messageInfo_ListResponse proto.InternalMessageInfo
|
||||||
|
|
||||||
func (m *ListResponse) GetConfigs() []*Change {
|
func (m *ListResponse) GetValues() []*Change {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
return m.Configs
|
return m.Values
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
@ -438,7 +438,7 @@ func (m *ReadRequest) Reset() { *m = ReadRequest{} }
|
|||||||
func (m *ReadRequest) String() string { return proto.CompactTextString(m) }
|
func (m *ReadRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*ReadRequest) ProtoMessage() {}
|
func (*ReadRequest) ProtoMessage() {}
|
||||||
func (*ReadRequest) Descriptor() ([]byte, []int) {
|
func (*ReadRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_942f149553cfb65d, []int{10}
|
return fileDescriptor_c33392ef2c1961ba, []int{10}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *ReadRequest) XXX_Unmarshal(b []byte) error {
|
func (m *ReadRequest) XXX_Unmarshal(b []byte) error {
|
||||||
@ -484,7 +484,7 @@ func (m *ReadResponse) Reset() { *m = ReadResponse{} }
|
|||||||
func (m *ReadResponse) String() string { return proto.CompactTextString(m) }
|
func (m *ReadResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*ReadResponse) ProtoMessage() {}
|
func (*ReadResponse) ProtoMessage() {}
|
||||||
func (*ReadResponse) Descriptor() ([]byte, []int) {
|
func (*ReadResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_942f149553cfb65d, []int{11}
|
return fileDescriptor_c33392ef2c1961ba, []int{11}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *ReadResponse) XXX_Unmarshal(b []byte) error {
|
func (m *ReadResponse) XXX_Unmarshal(b []byte) error {
|
||||||
@ -523,7 +523,7 @@ func (m *WatchRequest) Reset() { *m = WatchRequest{} }
|
|||||||
func (m *WatchRequest) String() string { return proto.CompactTextString(m) }
|
func (m *WatchRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*WatchRequest) ProtoMessage() {}
|
func (*WatchRequest) ProtoMessage() {}
|
||||||
func (*WatchRequest) Descriptor() ([]byte, []int) {
|
func (*WatchRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_942f149553cfb65d, []int{12}
|
return fileDescriptor_c33392ef2c1961ba, []int{12}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *WatchRequest) XXX_Unmarshal(b []byte) error {
|
func (m *WatchRequest) XXX_Unmarshal(b []byte) error {
|
||||||
@ -563,7 +563,7 @@ func (m *WatchResponse) Reset() { *m = WatchResponse{} }
|
|||||||
func (m *WatchResponse) String() string { return proto.CompactTextString(m) }
|
func (m *WatchResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*WatchResponse) ProtoMessage() {}
|
func (*WatchResponse) ProtoMessage() {}
|
||||||
func (*WatchResponse) Descriptor() ([]byte, []int) {
|
func (*WatchResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_942f149553cfb65d, []int{13}
|
return fileDescriptor_c33392ef2c1961ba, []int{13}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *WatchResponse) XXX_Unmarshal(b []byte) error {
|
func (m *WatchResponse) XXX_Unmarshal(b []byte) error {
|
||||||
@ -615,35 +615,35 @@ func init() {
|
|||||||
proto.RegisterType((*WatchResponse)(nil), "WatchResponse")
|
proto.RegisterType((*WatchResponse)(nil), "WatchResponse")
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { proto.RegisterFile("proto/mucp.proto", fileDescriptor_942f149553cfb65d) }
|
func init() { proto.RegisterFile("proto/service.proto", fileDescriptor_c33392ef2c1961ba) }
|
||||||
|
|
||||||
var fileDescriptor_942f149553cfb65d = []byte{
|
var fileDescriptor_c33392ef2c1961ba = []byte{
|
||||||
// 429 bytes of a gzipped FileDescriptorProto
|
// 425 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xdd, 0x8a, 0xd3, 0x40,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xdb, 0x6a, 0xdb, 0x40,
|
||||||
0x14, 0xc7, 0x9b, 0xb6, 0x9b, 0x9a, 0xd3, 0x24, 0x2d, 0xe7, 0x42, 0x42, 0x10, 0x8c, 0x03, 0x42,
|
0x10, 0x86, 0x2d, 0xdb, 0x51, 0xaa, 0xb1, 0x24, 0x87, 0x29, 0x14, 0x21, 0x0a, 0x15, 0x0b, 0x05,
|
||||||
0x51, 0x98, 0x5d, 0xbb, 0x8f, 0xb0, 0xde, 0xe9, 0xd5, 0x2c, 0xa2, 0xb7, 0xe3, 0xf4, 0xec, 0xb6,
|
0xd3, 0xc2, 0x26, 0x38, 0x8f, 0x90, 0xde, 0xb5, 0x57, 0x1b, 0x4a, 0x7b, 0xbb, 0x95, 0xa7, 0xb5,
|
||||||
0xac, 0x69, 0x62, 0x66, 0x2a, 0xf8, 0x08, 0xfa, 0xd4, 0x92, 0x99, 0xc9, 0x36, 0xa9, 0xf8, 0xd1,
|
0x49, 0x14, 0xa9, 0x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0x76, 0x11, 0x7c, 0x0b, 0xed, 0xa7, 0x7d, 0xf9, 0x37, 0x00, 0x00, 0xff,
|
||||||
0x00, 0x00, 0x00, 0xff, 0xff, 0xa7, 0x75, 0xb2, 0x55, 0xf0, 0x03, 0x00, 0x00,
|
0xff, 0x85, 0xa3, 0x8e, 0x20, 0xf1, 0x03, 0x00, 0x00,
|
||||||
}
|
}
|
@ -1,7 +1,7 @@
|
|||||||
// Code generated by protoc-gen-micro. DO NOT EDIT.
|
// Code generated by protoc-gen-micro. DO NOT EDIT.
|
||||||
// source: proto/mucp.proto
|
// source: proto/service.proto
|
||||||
|
|
||||||
package mucp
|
package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
fmt "fmt"
|
fmt "fmt"
|
@ -1,18 +1,12 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
|
||||||
service Service {
|
service Service {
|
||||||
rpc Create (CreateRequest) returns (CreateResponse) {
|
rpc Create (CreateRequest) returns (CreateResponse) {}
|
||||||
}
|
rpc Update (UpdateRequest) returns (UpdateResponse) {}
|
||||||
rpc Update (UpdateRequest) returns (UpdateResponse) {
|
rpc Delete (DeleteRequest) returns (DeleteResponse) {}
|
||||||
}
|
rpc List (ListRequest) returns (ListResponse) {}
|
||||||
rpc Delete (DeleteRequest) returns (DeleteResponse) {
|
rpc Read (ReadRequest) returns (ReadResponse) {}
|
||||||
}
|
rpc Watch (WatchRequest) returns (stream WatchResponse) {}
|
||||||
rpc List (ListRequest) returns (ListResponse) {
|
|
||||||
}
|
|
||||||
rpc Read (ReadRequest) returns (ReadResponse) {
|
|
||||||
}
|
|
||||||
rpc Watch (WatchRequest) returns (stream WatchResponse) {
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message ChangeSet {
|
message ChangeSet {
|
||||||
@ -33,28 +27,24 @@ message CreateRequest {
|
|||||||
Change change = 1;
|
Change change = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message CreateResponse {
|
message CreateResponse {}
|
||||||
}
|
|
||||||
|
|
||||||
message UpdateRequest {
|
message UpdateRequest {
|
||||||
Change change = 1;
|
Change change = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message UpdateResponse {
|
message UpdateResponse {}
|
||||||
}
|
|
||||||
|
|
||||||
message DeleteRequest {
|
message DeleteRequest {
|
||||||
Change change = 1;
|
Change change = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message DeleteResponse {
|
message DeleteResponse {}
|
||||||
}
|
|
||||||
|
|
||||||
message ListRequest {
|
message ListRequest {}
|
||||||
}
|
|
||||||
|
|
||||||
message ListResponse {
|
message ListResponse {
|
||||||
repeated Change configs = 1;
|
repeated Change values = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ReadRequest {
|
message ReadRequest {
|
@ -10,8 +10,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
DefaultServiceName = "go.micro.config"
|
DefaultName = "go.micro.config"
|
||||||
DefaultClient = client.DefaultClient
|
DefaultClient = client.DefaultClient
|
||||||
)
|
)
|
||||||
|
|
||||||
type service struct {
|
type service struct {
|
||||||
@ -45,7 +45,7 @@ func (m *service) Write(cs *source.ChangeSet) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (m *service) String() string {
|
func (m *service) String() string {
|
||||||
return "mucp"
|
return "service"
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewSource(opts ...source.Option) source.Source {
|
func NewSource(opts ...source.Option) source.Source {
|
||||||
@ -54,7 +54,7 @@ func NewSource(opts ...source.Option) source.Source {
|
|||||||
o(&options)
|
o(&options)
|
||||||
}
|
}
|
||||||
|
|
||||||
addr := DefaultServiceName
|
addr := DefaultName
|
||||||
|
|
||||||
if options.Context != nil {
|
if options.Context != nil {
|
||||||
a, ok := options.Context.Value(serviceNameKey{}).(string)
|
a, ok := options.Context.Value(serviceNameKey{}).(string)
|
Loading…
Reference in New Issue
Block a user