mqmsgspec

package
v0.0.0-...-6f676a1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2015 License: MIT Imports: 6 Imported by: 0

README

Prerequisites

  1. Protobuf

    on ubuntu

    sudo apt-get install protobuf-compiler

  2. gogo/protobuf

    go get github.com/gogo/protobuf/proto go get github.com/gogo/protobuf/protoc-gen-gogofast go get github.com/gogo/protobuf/gogoproto

Regenerate

Just run make. Check out the Makefile to see the compilation command.

Documentation

Overview

Package mqmsgspec is a generated protocol buffer package.

It is generated from these files:

user.proto

It has these top-level messages:

InnerAuthenticateUserRequest
InnerAuthenticateUserResponse

Index

Constants

View Source
const (
	AuthenticateUserSubject = "user.users.authenticate"
)

Variables

View Source
var (
	ErrInvalidLengthUser = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowUser   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type AuthenticateUserRequest

type AuthenticateUserRequest struct {
	*InnerAuthenticateUserRequest
}

func (*AuthenticateUserRequest) SetContext

func (w *AuthenticateUserRequest) SetContext(ctx *protobuf.NatsContext)

type AuthenticateUserResponse

type AuthenticateUserResponse struct {
	*InnerAuthenticateUserResponse
}

Wrapper for protobuf generated structs to add setters

func (*AuthenticateUserResponse) SetContext

func (w *AuthenticateUserResponse) SetContext(ctx *protobuf.NatsContext)

type InnerAuthenticateUserRequest

type InnerAuthenticateUserRequest struct {
	Context          *protobuf.NatsContext `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"`
	Username         *string               `protobuf:"bytes,2,opt,name=username" json:"username,omitempty" validate:"required"`
	Password         *string               `protobuf:"bytes,3,opt,name=password" json:"password,omitempty" validate:"required"`
	XXX_unrecognized []byte                `json:"-"`
}

func (*InnerAuthenticateUserRequest) GetContext

func (*InnerAuthenticateUserRequest) GetPassword

func (m *InnerAuthenticateUserRequest) GetPassword() string

func (*InnerAuthenticateUserRequest) GetUsername

func (m *InnerAuthenticateUserRequest) GetUsername() string

func (*InnerAuthenticateUserRequest) Marshal

func (m *InnerAuthenticateUserRequest) Marshal() (data []byte, err error)

func (*InnerAuthenticateUserRequest) MarshalTo

func (m *InnerAuthenticateUserRequest) MarshalTo(data []byte) (int, error)

func (*InnerAuthenticateUserRequest) ProtoMessage

func (*InnerAuthenticateUserRequest) ProtoMessage()

func (*InnerAuthenticateUserRequest) Reset

func (m *InnerAuthenticateUserRequest) Reset()

func (*InnerAuthenticateUserRequest) Size

func (m *InnerAuthenticateUserRequest) Size() (n int)

func (*InnerAuthenticateUserRequest) String

func (*InnerAuthenticateUserRequest) Unmarshal

func (m *InnerAuthenticateUserRequest) Unmarshal(data []byte) error

type InnerAuthenticateUserResponse

type InnerAuthenticateUserResponse struct {
	Context          *protobuf.NatsContext `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"`
	Error            *string               `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"`
	Authenticated    *bool                 `protobuf:"varint,3,opt,name=authenticated" json:"authenticated,omitempty"`
	XXX_unrecognized []byte                `json:"-"`
}

func (*InnerAuthenticateUserResponse) GetAuthenticated

func (m *InnerAuthenticateUserResponse) GetAuthenticated() bool

func (*InnerAuthenticateUserResponse) GetContext

func (*InnerAuthenticateUserResponse) GetError

func (m *InnerAuthenticateUserResponse) GetError() string

func (*InnerAuthenticateUserResponse) Marshal

func (m *InnerAuthenticateUserResponse) Marshal() (data []byte, err error)

func (*InnerAuthenticateUserResponse) MarshalTo

func (m *InnerAuthenticateUserResponse) MarshalTo(data []byte) (int, error)

func (*InnerAuthenticateUserResponse) ProtoMessage

func (*InnerAuthenticateUserResponse) ProtoMessage()

func (*InnerAuthenticateUserResponse) Reset

func (m *InnerAuthenticateUserResponse) Reset()

func (*InnerAuthenticateUserResponse) Size

func (m *InnerAuthenticateUserResponse) Size() (n int)

func (*InnerAuthenticateUserResponse) String

func (*InnerAuthenticateUserResponse) Unmarshal

func (m *InnerAuthenticateUserResponse) Unmarshal(data []byte) error

Jump to

Keyboard shortcuts

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