api: change to more aesthetic package name

This commit is contained in:
George Tankersley 2019-05-22 14:13:26 -04:00
parent 2981f9f3e4
commit 4dc4ed558c
2 changed files with 21 additions and 23 deletions

View File

@ -35,7 +35,7 @@ func (m *Request) Reset() { *m = Request{} }
func (m *Request) String() string { return proto.CompactTextString(m) }
func (*Request) ProtoMessage() {}
func (*Request) Descriptor() ([]byte, []int) {
return fileDescriptor_token_redemption_727604cb7b5677c7, []int{0}
return fileDescriptor_token_redemption_710a7767d5864950, []int{0}
}
func (m *Request) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Request.Unmarshal(m, b)
@ -81,7 +81,7 @@ func (m *Response) Reset() { *m = Response{} }
func (m *Response) String() string { return proto.CompactTextString(m) }
func (*Response) ProtoMessage() {}
func (*Response) Descriptor() ([]byte, []int) {
return fileDescriptor_token_redemption_727604cb7b5677c7, []int{1}
return fileDescriptor_token_redemption_710a7767d5864950, []int{1}
}
func (m *Response) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Response.Unmarshal(m, b)
@ -116,8 +116,8 @@ func (m *Response) GetMsg() string {
}
func init() {
proto.RegisterType((*Request)(nil), "swagapi.Request")
proto.RegisterType((*Response)(nil), "swagapi.Response")
proto.RegisterType((*Request)(nil), "zcon1.Request")
proto.RegisterType((*Response)(nil), "zcon1.Response")
}
// Reference imports to suppress errors if they are not otherwise used.
@ -145,7 +145,7 @@ func NewSwagAPIClient(cc *grpc.ClientConn) SwagAPIClient {
func (c *swagAPIClient) Redeem(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/swagapi.SwagAPI/Redeem", in, out, opts...)
err := c.cc.Invoke(ctx, "/zcon1.SwagAPI/Redeem", in, out, opts...)
if err != nil {
return nil, err
}
@ -171,7 +171,7 @@ func _SwagAPI_Redeem_Handler(srv interface{}, ctx context.Context, dec func(inte
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/swagapi.SwagAPI/Redeem",
FullMethod: "/zcon1.SwagAPI/Redeem",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SwagAPIServer).Redeem(ctx, req.(*Request))
@ -180,7 +180,7 @@ func _SwagAPI_Redeem_Handler(srv interface{}, ctx context.Context, dec func(inte
}
var _SwagAPI_serviceDesc = grpc.ServiceDesc{
ServiceName: "swagapi.SwagAPI",
ServiceName: "zcon1.SwagAPI",
HandlerType: (*SwagAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
@ -193,21 +193,21 @@ var _SwagAPI_serviceDesc = grpc.ServiceDesc{
}
func init() {
proto.RegisterFile("token-redemption.proto", fileDescriptor_token_redemption_727604cb7b5677c7)
proto.RegisterFile("token-redemption.proto", fileDescriptor_token_redemption_710a7767d5864950)
}
var fileDescriptor_token_redemption_727604cb7b5677c7 = []byte{
// 186 bytes of a gzipped FileDescriptorProto
var fileDescriptor_token_redemption_710a7767d5864950 = []byte{
// 184 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2b, 0xc9, 0xcf, 0x4e,
0xcd, 0xd3, 0x2d, 0x4a, 0x4d, 0x49, 0xcd, 0x2d, 0x28, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca,
0x2f, 0xc9, 0x17, 0x62, 0x2f, 0x2e, 0x4f, 0x4c, 0x4f, 0x2c, 0xc8, 0x54, 0xb2, 0xe4, 0x62, 0x0f,
0x4a, 0x2d, 0x2c, 0x4d, 0x2d, 0x2e, 0x11, 0x12, 0xe1, 0x62, 0x05, 0xab, 0x96, 0x60, 0x54, 0x60,
0xd4, 0xe0, 0x0c, 0x82, 0x70, 0x84, 0x24, 0xb8, 0xd8, 0x13, 0x53, 0x52, 0x8a, 0x52, 0x8b, 0x8b,
0x25, 0x98, 0xc0, 0xe2, 0x30, 0xae, 0x92, 0x19, 0x17, 0x47, 0x50, 0x6a, 0x71, 0x41, 0x7e, 0x5e,
0x71, 0x2a, 0x48, 0x55, 0x71, 0x69, 0x72, 0x32, 0x48, 0x15, 0x48, 0x37, 0x47, 0x10, 0x8c, 0x2b,
0x24, 0xc0, 0xc5, 0x9c, 0x5b, 0x9c, 0x0e, 0xd5, 0x0b, 0x62, 0x1a, 0x59, 0x71, 0xb1, 0x07, 0x97,
0x27, 0xa6, 0x3b, 0x06, 0x78, 0x0a, 0xe9, 0x73, 0xb1, 0x05, 0xa5, 0xa6, 0xa4, 0xa6, 0xe6, 0x0a,
0x09, 0xe8, 0x41, 0x5d, 0xa4, 0x07, 0x75, 0x8e, 0x94, 0x20, 0x92, 0x08, 0xc4, 0x16, 0x25, 0x06,
0x27, 0xd6, 0x28, 0xe6, 0xc4, 0x82, 0xcc, 0x24, 0x36, 0xb0, 0x2f, 0x8c, 0x01, 0x01, 0x00, 0x00,
0xff, 0xff, 0xf8, 0x3c, 0x52, 0x97, 0xdf, 0x00, 0x00, 0x00,
0x2f, 0xc9, 0x17, 0x62, 0xad, 0x4a, 0xce, 0xcf, 0x33, 0x54, 0xb2, 0xe4, 0x62, 0x0f, 0x4a, 0x2d,
0x2c, 0x4d, 0x2d, 0x2e, 0x11, 0x12, 0xe1, 0x62, 0x05, 0xab, 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0,
0x0c, 0x82, 0x70, 0x84, 0x24, 0xb8, 0xd8, 0x13, 0x53, 0x52, 0x8a, 0x52, 0x8b, 0x8b, 0x25, 0x98,
0xc0, 0xe2, 0x30, 0xae, 0x92, 0x19, 0x17, 0x47, 0x50, 0x6a, 0x71, 0x41, 0x7e, 0x5e, 0x71, 0x2a,
0x48, 0x55, 0x71, 0x69, 0x72, 0x32, 0x48, 0x15, 0x48, 0x37, 0x47, 0x10, 0x8c, 0x2b, 0x24, 0xc0,
0xc5, 0x9c, 0x5b, 0x9c, 0x0e, 0xd5, 0x0b, 0x62, 0x1a, 0x99, 0x71, 0xb1, 0x07, 0x97, 0x27, 0xa6,
0x3b, 0x06, 0x78, 0x0a, 0x69, 0x73, 0xb1, 0x05, 0xa5, 0xa6, 0xa4, 0xa6, 0xe6, 0x0a, 0xf1, 0xe9,
0x81, 0xdd, 0xa3, 0x07, 0x75, 0x8c, 0x14, 0x3f, 0x9c, 0x0f, 0xb1, 0x41, 0x89, 0xc1, 0x89, 0x35,
0x8a, 0x39, 0xb1, 0x20, 0x33, 0x89, 0x0d, 0xec, 0x7e, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff,
0xf3, 0x74, 0x62, 0xb5, 0xd9, 0x00, 0x00, 0x00,
}

View File

@ -1,5 +1,5 @@
syntax = "proto3";
package swagapi;
package zcon1;
option go_package = "api";
message Request {
@ -15,5 +15,3 @@ message Response {
service SwagAPI {
rpc Redeem(Request) returns (Response) {}
}